Fix json format error message

This commit is contained in:
世界
2022-09-07 13:19:57 +08:00
parent 3b48fa455e
commit 9a422549b1
2 changed files with 2 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ func format() error {
return E.Cause(err, "read config")
}
var options option.Options
err = json.Unmarshal(configContent, &options)
err = options.UnmarshalJSON(configContent)
if err != nil {
return E.Cause(err, "decode config")
}