@marcel91200 / caddy Mirror · read-only / commits / 62b06853
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 13, 13:00 UTC

cmd: Improve error message if config missing

Matthew Holt committed Sep 14, 2022 at 23:24 UTC 62b0685375cc4dc2c670afd07d1319affa179544
1 file changed +1 -1
cmd/commandfuncs.go
+1 -1
@@ -679,7 +679,7 @@ func DetermineAdminAPIAddress(address string, config []byte, configFile, configA
679 return "", err
680 }
681 if loadedConfigFile == "" {
682 - return "", fmt.Errorf("no config file to load")
682 + return "", fmt.Errorf("no config file to load; either use --config flag or ensure Caddyfile exists in current directory")
683 }
684 }
685