Commit fe9a5b16 authored by Darren Shepherd's avatar Darren Shepherd

Remove spurious error on start

parent 2f3da6af
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment