summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--caddytest/caddytest.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/caddytest/caddytest.go b/caddytest/caddytest.go
index 4076bd5..c4c2687 100644
--- a/caddytest/caddytest.go
+++ b/caddytest/caddytest.go
@@ -223,7 +223,7 @@ func isCaddyAdminRunning() error {
}
resp, err := client.Get(fmt.Sprintf("http://localhost:%d/config/", Default.AdminPort))
if err != nil {
- return errors.New("caddy integration test caddy server not running. Expected to be listening on localhost:2019")
+ return fmt.Errorf("caddy integration test caddy server not running. Expected to be listening on localhost:%d", Default.AdminPort)
}
resp.Body.Close()