Open worldsibu-bot opened 5 years ago
When sending a transaction that should fail, the nodejs SDK won't show all the levels of the error.
Show more details of the error by printing the whole response object.
It won't show the exact error of the responses.
Should show the details of the errors from every peer.
Send a transaction from nodejs to a function inside of the chaincode that breaks by design such as:
throw new Error('expected')
Add this to the place where the error is printed (import util first)
util
console.log(util.inspect(ex, {showHidden: false, depth: null}))
The problem
When sending a transaction that should fail, the nodejs SDK won't show all the levels of the error.
Environment
Details
Show more details of the error by printing the whole response object.
Current Behavior
It won't show the exact error of the responses.
Expected Behavior
Should show the details of the errors from every peer.
Code To Reproduce Issue [ Good To Have ]
Send a transaction from nodejs to a function inside of the chaincode that breaks by design such as:
Fix
Add this to the place where the error is printed (import
util
first)