From 5b37b649a6e2304d1abbc623eda48cdc1ad51318 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=BE=E9=9B=A8?= Date: Tue, 24 Aug 2021 12:42:34 +0800 Subject: [PATCH] return error details to frontend (#35) Co-authored-by: nyanpassu --- proxy/docker/helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/docker/helper.go b/proxy/docker/helper.go index db1545c..8a20cd6 100644 --- a/proxy/docker/helper.go +++ b/proxy/docker/helper.go @@ -72,7 +72,7 @@ func writeErrorResponse(res http.ResponseWriter, logger utils.Logger, err error, if err := utils.WriteBadGateWayResponse( res, utils.HTTPSimpleMessageResponseBody{ - Message: label + " error", + Message: label + " error, cause: " + err.Error(), }, ); err != nil { logger.Errorf("write %s error response failed %v", label, err)