You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ES2022 (I think?), Errors gained a cause attribute. The default behavior of Clipanion to format the error doesn't check for this field, only stack, so the causes of rethrown errors are silently dropped.
I'd be happy to open a PR to add cause support to the default formatting behavior. I would have already but to make it typesafe I would have to change the tsconfig.json's lib it compiles against (and potentially the TypeScript version itself?), and I don't know what compatibility requirements you have. cause is supported since Node 16, which is now EOL.
The text was updated successfully, but these errors were encountered:
In ES2022 (I think?),
Error
s gained acause
attribute. The default behavior of Clipanion to format the error doesn't check for this field, onlystack
, so the causes of rethrown errors are silently dropped.I'd be happy to open a PR to add
cause
support to the default formatting behavior. I would have already but to make it typesafe I would have to change the tsconfig.json'slib
it compiles against (and potentially the TypeScript version itself?), and I don't know what compatibility requirements you have.cause
is supported since Node 16, which is now EOL.The text was updated successfully, but these errors were encountered: