Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(go-runtime): include error message when wrapping a @jsii/kernel.…
…Fault (#4275) I ran into this error message when developing a JSII compatible construct. ``` panic: JsiiError: @jsii/kernel.Fault ``` Including the de-serialized error message into the wrapped error helped me debug that I was missing the `.jsii` file in my distribution! (eg: I needed to add `".jsii"` to the `"files"` list in my construct's `package.json`) ``` panic: JsiiError: @jsii/kernel.Fault Error for package tarball /var/folders/<redacted>.tgz: Expected to find .jsii file in /var/folders/<redacted>/node_modules/<redacted>, but no such file found ``` --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
- Loading branch information