mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-26 05:33:49 +03:00
cmd: Improve error message if config missing
This commit is contained in:
parent
0b3161aeea
commit
62b0685375
1 changed files with 1 additions and 1 deletions
|
@ -679,7 +679,7 @@ func DetermineAdminAPIAddress(address string, config []byte, configFile, configA
|
|||
return "", err
|
||||
}
|
||||
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 a new issue