kodadot / nft-gallery

Generative Art Marketplace
https://koda.art
MIT License
634 stars 361 forks source link

Humanize errors #9038

Closed vikiival closed 5 months ago

vikiival commented 8 months ago

Is your feature request related to a problem?

Sometimes an error on KodaDot could happen and user is confused when (s)he sees error like {AlreadyExists: The item ID has already been used for an item. }

Describe the solution you would like

Instead it would be nice to have contextual errors - in mint this means some sn mismatch (bad calculation)

  1. Rework state for error throwing (should return some object or smth)
  2. Compile translation files for top errors (https://assethub-kusama.subscan.io/runtime)

Describe alternatives you have considered

We need to rethink error notifications properly.

Screenshots

No response

Are there opened related issues?

No response

JustLuuuu commented 8 months ago

Maybe related too:

yangwao commented 8 months ago

Maybe we can wire up notifications with some [Report this problem] so we can have it filled right away with more debug information or actually Sentry should handle this gracefully

yangwao commented 7 months ago

Drop popular errors and we can start styling them better

vikiival commented 7 months ago

Drop popular errors and we can start styling them better

  1. https://assethub-kusama.subscan.io/runtime/Nfts?version=1001002
  2. CMD +F Error Types
exezbcz commented 5 months ago

continue to: