From 8da8ee2aeac4ef5742ca59c672aa3eac4188badc Mon Sep 17 00:00:00 2001 From: Kohei Tokunaga Date: Fri, 13 Oct 2023 11:19:08 +0900 Subject: [PATCH] controller: return original error to preserve stacktrace Signed-off-by: Kohei Tokunaga --- build/result.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/result.go b/build/result.go index f76aab6a..b571cb66 100644 --- a/build/result.go +++ b/build/result.go @@ -117,7 +117,7 @@ func NewResultHandle(ctx context.Context, cc *client.Client, opt client.SolveOpt gwClient: c, gwCtx: ctx, } - respErr = se + respErr = err // return original error to preserve stacktrace close(done) // Block until the caller closes the ResultHandle.