Config loader returns error instead of directly panic (#80)

This commit is contained in:
Jim Han authored and GitHub committed 2020-12-16 12:35:27 +00:00
1 parent fe445f8e1a
commit 19ce0e99a5
2 files changed
+7 -3

No files matched your search

+1 -1
View File
@@ -164,7 +164,7 @@ func startXray() (core.Server, error) {
config, err := core.LoadConfig(getConfigFormat(), configFiles[0], configFiles)
if err != nil {
return nil, newError("failed to read config files: [", configFiles.String(), "]").Base(err)
return nil, newError("failed to load config files: [", configFiles.String(), "]").Base(err)
}
server, err := core.New(config)