Error Handling #4780
Unanswered
quiet-node
asked this question in
Troubleshooting
Error Handling
#4780
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, my team recently migrated from etherjs v5 to v6, also upgraded
@nomicfoundation/hardhat-chai-matchers
from ^1.0.3 to ^2.0.3, and hardhathardhat
from 2.17.2 to 2.19.4. There's some difference of the error object after the upgrade. Below is the contextHere is my Solidity contract:
And here is the corresponding unit test in JavaScript:
Before the upgrade, the
console.log(error)
would print out detailed information like:After the upgrade, the error object looks like:
There is less detailed information compared to before the upgrade. My question is: Is it possible to make the error object as informative as it was?
Beta Was this translation helpful? Give feedback.
All reactions