From 62b0685375cc4dc2c670afd07d1319affa179544 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Wed, 14 Sep 2022 23:24:16 -0600 Subject: [PATCH] cmd: Improve error message if config missing --- cmd/commandfuncs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/commandfuncs.go b/cmd/commandfuncs.go index 874cc6ff2..e3daae59a 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") } }