mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-10-29 06:31:56 +00:00
Config loader returns error instead of directly panic (#80)
This commit is contained in:
1 parent
fe445f8e1a
commit
19ce0e99a5
2 files changed
+7
-3
No files matched your search
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user