Remove spurious error on start

This commit is contained in:
Darren Shepherd 2019-03-07 09:47:37 -07:00
parent 2f3da6af94
commit fe9a5b1601

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
}