controller: return original error to preserve stacktrace

Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
This commit is contained in:
Kohei Tokunaga 2023-10-13 11:19:08 +09:00
parent 6db8569f09
commit 8da8ee2aea
No known key found for this signature in database
GPG Key ID: 6CE0A04690DB3FB3

View File

@ -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.