From 2eb9b4b0c99477ccd1e0e6744050837b65a51df8 Mon Sep 17 00:00:00 2001 From: Jakub Zych Date: Thu, 17 Sep 2026 13:40:47 +0200 Subject: [PATCH] fix(02-03): surface reverse-proxy record failures in 502 bodies Silent "upstream error" hid capture-rule failures during MCP token exchange. Co-authored-by: Cursor --- tide/proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tide/proxy.go b/tide/proxy.go index 19bac45..688696b 100644 --- a/tide/proxy.go +++ b/tide/proxy.go @@ -107,7 +107,7 @@ func NewProxy(cfg ProxyConfig) (*Proxy, error) { }, ModifyResponse: p.modifyResponse, ErrorHandler: func(w http.ResponseWriter, r *http.Request, err error) { - http.Error(w, "tide: upstream error", http.StatusBadGateway) + http.Error(w, "tide: upstream error: "+err.Error(), http.StatusBadGateway) }, } return p, nil