Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

display specific error msg for reverted execution #1913

Open
dustinxie opened this issue Sep 24, 2021 · 0 comments
Open

display specific error msg for reverted execution #1913

dustinxie opened this issue Sep 24, 2021 · 0 comments

Comments

@dustinxie
Copy link
Member

dustinxie commented Sep 24, 2021

revert

what to do

receipt has a field to indicate specific error msg, see
https://github.com/iotexproject/iotex-proto/blob/master/golang/iotextypes/action.pb.go#L2611

if Receipt.Status == ErrExecutionReverted {
   if Receipt.ExecutionRevertMsg != null {
      display `Receipt.ExecutionRevertMsg` on the page
   } else {
      display `ErrExecutionReverted`  // current on page
   }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant