cmd: Improve error message if config missing
parent
0b3161aeea
commit
62b0685375
|
@ -679,7 +679,7 @@ func DetermineAdminAPIAddress(address string, config []byte, configFile, configA
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
if loadedConfigFile == "" {
|
if loadedConfigFile == "" {
|
||||||
return "", fmt.Errorf("no config file to load")
|
return "", fmt.Errorf("no config file to load; either use --config flag or ensure Caddyfile exists in current directory")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue