From 7bf5decf82011accce2d7f055c1ab7898dd34240 Mon Sep 17 00:00:00 2001 From: Bryan Moffatt Date: Fri, 1 Sep 2023 20:50:17 -0700 Subject: [PATCH] Include the error message when the go runtime observes a @jsii/kernel.Fault --- .../jsii-runtime-go/internal/kernel/process/process.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@jsii/go-runtime/jsii-runtime-go/internal/kernel/process/process.go b/packages/@jsii/go-runtime/jsii-runtime-go/internal/kernel/process/process.go index f437648f5c..4541c2a8e1 100644 --- a/packages/@jsii/go-runtime/jsii-runtime-go/internal/kernel/process/process.go +++ b/packages/@jsii/go-runtime/jsii-runtime-go/internal/kernel/process/process.go @@ -227,7 +227,7 @@ func (p *Process) readResponse(into interface{}) error { json.Unmarshal(raw, &errResp) if errResp.Name != nil && *errResp.Name == "@jsii/kernel.Fault" { - return fmt.Errorf("JsiiError: %s", *errResp.Name) + return fmt.Errorf("JsiiError: %s %s", *errResp.Name, errResp.Error) } return errors.New(errResp.Error)