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
First off this is a great library, has been a huge help for working with electron-trpc. One thing I noticed recently was that when we pass Error objects through the cause field is removed ( MDN Error: cause ). We use this quite a lot to add extra context. I found #91 which explained why, but that was in the context of stack, code, etc.
I've logged a ticket for our app to use the allowErrorProps to fix our issue but I wondered if you would consider adding support for cause out of the box. Additionally adding support for MDN AggregateError would be great as well.
constoriginal=newError('Network request failed')constchained=newError('Unable to get articles',{cause: original})console.log(chained.cause)constcopy=deserialize(serialize({ chained }))console.log(copy.chained.cause)
The text was updated successfully, but these errors were encountered:
First off this is a great library, has been a huge help for working with electron-trpc. One thing I noticed recently was that when we pass
Error
objects through thecause
field is removed ( MDN Error: cause ). We use this quite a lot to add extra context. I found #91 which explained why, but that was in the context of stack, code, etc.I've logged a ticket for our app to use the
allowErrorProps
to fix our issue but I wondered if you would consider adding support forcause
out of the box. Additionally adding support for MDN AggregateError would be great as well.The text was updated successfully, but these errors were encountered: