Remove spurious error on start

pull/181/head
Darren Shepherd 6 years ago
parent 2f3da6af94
commit fe9a5b1601

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

Loading…
Cancel
Save