diff --git a/config/data_funcs.go b/config/data_funcs.go index 075d077e..df4a1dfe 100755 --- a/config/data_funcs.go +++ b/config/data_funcs.go @@ -16,7 +16,7 @@ func ChainCfgFuncs(cfg *CloudConfig, cfgFuncs ...CfgFunc) (*CloudConfig, error) log.Debugf("[%d/%d] Starting", i+1, len(cfgFuncs)) var err error if cfg, err = cfgFunc(cfg); err != nil { - log.Errorf("Failed [%d/%d] %d%%", i+1, len(cfgFuncs), ((i + 1) * 100 / len(cfgFuncs))) + log.Errorf("Failed [%d/%d] %s", i+1, len(cfgFuncs), err) return cfg, err } log.Debugf("[%d/%d] Done %d%%", i+1, len(cfgFuncs), ((i + 1) * 100 / len(cfgFuncs))) diff --git a/init/sysinit.go b/init/sysinit.go index e3237fd3..0627c814 100644 --- a/init/sysinit.go +++ b/init/sysinit.go @@ -84,7 +84,7 @@ func loadImages(cfg *config.CloudConfig) (*config.CloudConfig, error) { log.Infof("Loading images from %s", inputFileName) if _, err = client.ImageLoad(context.Background(), input, true); err != nil { - return cfg, err + log.Fatalf("FATAL: failed loading images from %s: %s", inputFileName, err) } log.Infof("Done loading images from %s", inputFileName)