bitpay / wallet

Bitpay Wallet (formerly Copay) is a secure Bitcoin and other crypto currencies wallet platform for both desktop and mobile devices.
http://bitpay.com/wallet
MIT License
3.8k stars 1.74k forks source link

Cleaner display of unhandled errors (formatting returned JSON into tables) #4560

Open bitjson opened 8 years ago

bitjson commented 8 years ago

It might be a good idea to display "unhandled" errors in a cleaner way, rather than directly showing the end use the JSON object returned. Should we format returned JSON into simple HTML tables of key-value pairs? Nested objects could be displayed in a sub-table, and so on.

Nested objects could also be displayed as ... and a View Full Response button could reveal the JSON response in a copy/paste-able input field.

matiu commented 8 years ago

We never display JSON returned errors directly. If that is displayed, it must be a bug...

But I love the "View Full response" idea, it will be really helpful to provide support.