summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2022-09-14 23:24:16 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2022-09-14 23:24:16 -0600
commit62b0685375cc4dc2c670afd07d1319affa179544 (patch)
tree0917b1148c858449802fcb789c1647ad96c8b0b4 /cmd
parent0b3161aeea388a092fd5a128191d64e7fd2fd941 (diff)
cmd: Improve error message if config missing
Diffstat (limited to 'cmd')
-rw-r--r--cmd/commandfuncs.go2
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")
}
}