summaryrefslogtreecommitdiff
path: root/configfiles.go
diff options
context:
space:
mode:
Diffstat (limited to 'configfiles.go')
-rw-r--r--configfiles.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/configfiles.go b/configfiles.go
index df56e83..5c2b0f6 100644
--- a/configfiles.go
+++ b/configfiles.go
@@ -42,13 +42,13 @@ func readConfigFile(filename string) error {
pfile, err := os.ReadFile(fullname)
if err != nil {
log.Info("open config file :", err)
- return ErrorNoFile
+ return err
}
err = me.cluster.UnmarshalJSON(pfile)
if err != nil {
log.Info("read json failed", err)
os.Exit(-1)
- return ErrorParseJSON
+ return err
}
// initialize each hypervisor