odradev / odra

Odra framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Errors mapping in HostEnv

kpob opened this issue · comments

At this moment if a contract fails, a user gets just the error number, eg
🤦 ERROR : Deploy "f58fd84a62ca7ecab050299ab807475119be2b622c9d25de23f341bb6d4fdd3d" failed with error: "User error: 60001". on livenet client.

Should be possible to take advantage of the schema file, find the error number, and print the error name.

If the error is an Odra internal error, also should be mapped to a human-readable form.