Merge pull request #181 from ibuildthecloud/master

Remove spurious error on start
This commit is contained in:
Darren Shepherd 2019-03-07 11:00:07 -07:00 committed by GitHub
commit f4f29e6947
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,7 +131,9 @@ func Run(ctx context.Context, cfg *config.Node) error {
func preloadImages(cfg *config.Node) error {
fileInfo, err := os.Stat(cfg.Images)
if err != nil {
if os.IsNotExist(err) {
return nil
} else if err != nil {
logrus.Errorf("Unable to find images in %s: %v", cfg.Images, err)
return nil
}