Replies: 1 comment 3 replies
-
The sub-error messages are generally things that were not machine readable and provided for humans to debug. I try to parse anything meaningful to code into the error as the There isn’t really any plans to make these messages portable, since there is no way to interpret it. If you have a situation where the message could be more thoroughly parsed (that would work across various backends), I’m more than willing to parse it out and include additional details directly on the error object. Does that make sense? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Richard, @ricmoo
Currently, in my app, I do the following:
I really don't like
error.error.message
.error
in the catch block ?error.error.message
, if I change the ethers.js to some other library, I guess, type of the error doesn't follow the same standard across different packages. right ? Any idea how it can be done so that changing packages from ethers to web3 doesn't affect too much my code ?Beta Was this translation helpful? Give feedback.
All reactions