mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 15:36:41 -05:00
remove unnecessary error msg
This commit is contained in:
parent
c13b212fc6
commit
eff193ab45
@ -23,7 +23,7 @@ func RegisterConfigLoader(format ConfigFormat, loader ConfigLoader) error {
|
|||||||
func LoadConfig(format ConfigFormat, input io.Reader) (*Config, error) {
|
func LoadConfig(format ConfigFormat, input io.Reader) (*Config, error) {
|
||||||
loader, found := configLoaderCache[format]
|
loader, found := configLoaderCache[format]
|
||||||
if !found {
|
if !found {
|
||||||
return nil, newError("Core: ", ConfigFormat_name[int32(format)], " is not loadable.")
|
return nil, newError(ConfigFormat_name[int32(format)], " is not loadable.")
|
||||||
}
|
}
|
||||||
return loader(input)
|
return loader(input)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user