From 2de7e57e0834b56281c61a67f1a1b8b792c976de Mon Sep 17 00:00:00 2001 From: Andrew Cassidy Date: Tue, 14 Oct 2025 08:08:03 +0000 Subject: [PATCH] chore: log reason reverse proxy can't be started (#1089) Following on to #1065, the reason that the reverse proxy cannot be started (such as an invalid cache server URL) wasn't being logged. - other - [PR](https://code.forgejo.org/forgejo/runner/pulls/1089): chore: log reason reverse proxy can't be started Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/1089 Reviewed-by: Mathieu Fenniak Reviewed-by: earl-warren Co-authored-by: Andrew Cassidy Co-committed-by: Andrew Cassidy --- act/cacheproxy/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/act/cacheproxy/handler.go b/act/cacheproxy/handler.go index 499c5167..ebaf65e2 100644 --- a/act/cacheproxy/handler.go +++ b/act/cacheproxy/handler.go @@ -82,7 +82,7 @@ func StartHandler(targetHost, outboundIP string, port uint16, cacheProxyHostOver proxy, err := h.newReverseProxy(targetHost) if err != nil { - return nil, fmt.Errorf("unable to set up proxy to target host") + return nil, fmt.Errorf("unable to set up proxy to target host: %v", err) } router := httprouter.New()