apps icon indicating copy to clipboard operation
apps copied to clipboard

Support display the `PalletError` type

Open boundless-forest opened this issue 2 years ago • 0 comments

  • [ ] Bug report
  • [x] Feature request
  • [ ] Support request
  • [ ] Other

I've searched the substrate stackexchange, but found nothing helpful. Is it possible to display the wrapped error types in the polkadot apps? I did such a test to show the case.

Add a test error type TestError which wrap a VerificationError annotated with PalletError and TypeInfo. Then, create a mock pallet call to trigger this error.

image

The polkadot apps display like:

image

Of course, I can dig into the console to analyse the dispatch error code there. But it's would be best to have it diplayed by the apps.

boundless-forest avatar May 17 '23 06:05 boundless-forest