fix the file not found error message when passing -config

This commit is contained in:
Alison Winters 2019-10-30 21:56:08 +08:00 committed by Frank Denis
parent 7307c51d6f
commit 9eae8de902
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ func findConfigFile(configFile *string) (string, error) {
func ConfigLoad(proxy *Proxy, flags *ConfigFlags) error {
foundConfigFile, err := findConfigFile(flags.ConfigFile)
if err != nil {
dlog.Fatalf("Unable to load the configuration file [%s] -- Maybe use the -config command-line switch?", flags.ConfigFile)
dlog.Fatalf("Unable to load the configuration file [%s] -- Maybe use the -config command-line switch?", *flags.ConfigFile)
}
config := newConfig()
md, err := toml.DecodeFile(foundConfigFile, &config)