mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 17:38:41 +00:00
Config loader returns error instead of directly panic (#80)
This commit is contained in:
parent
fe445f8e1a
commit
19ce0e99a5
2 changed files with 7 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue