diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2022-09-14 23:24:16 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2022-09-14 23:24:16 -0600 |
commit | 62b0685375cc4dc2c670afd07d1319affa179544 (patch) | |
tree | 0917b1148c858449802fcb789c1647ad96c8b0b4 | |
parent | 0b3161aeea388a092fd5a128191d64e7fd2fd941 (diff) |
cmd: Improve error message if config missing
-rw-r--r-- | cmd/commandfuncs.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/commandfuncs.go b/cmd/commandfuncs.go index 874cc6f..e3daae5 100644 --- a/cmd/commandfuncs.go +++ b/cmd/commandfuncs.go @@ -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") } } |