iroha icon indicating copy to clipboard operation
iroha copied to clipboard

Poor errors formatting

Open 0x009922 opened this issue 1 year ago • 1 comments

Description

tl;dr: Iroha has detailed errors internally, but when it comes to their formatting most of the details are dismissed.

In order for formatting to work properly, each separate Error in Iroha codebase must implement it properly and consistently with others. Since there are quite many Errors, I propose to significantly increase test coverage of their formatting.

Here is an example of this issue: #4973

Detailed error messages are very important for UX. Improving it should not be a breaking API change.

0x009922 avatar Aug 14 '24 04:08 0x009922

Just another case from users:

ERROR iroha_core::snapshot: Failed to create a snapshot of state error=Error (de)serializing World State View snapshot

We unfortunately will never know what actually happened, although all the details are there inside.

0x009922 avatar Aug 22 '24 06:08 0x009922

I can work on it.

aoyako avatar Oct 24 '24 14:10 aoyako