kuzzle-admin-console icon indicating copy to clipboard operation
kuzzle-admin-console copied to clipboard

Display the error message in the error toast

Open Aschen opened this issue 4 years ago • 6 comments

Actually when an error occur, a generic toast is displayed indicating that the full error has been printed in the console.

The toast should include Kuzzle error message and print the complete error in the console

Aschen avatar Nov 04 '20 12:11 Aschen

The toast is not really generic, for each error we display a customizable and understandable message, indicating what didn't work.

IMHO it is necessary to differentiate between dev and non dev users: the first ones know how to open the console of their browser, the second ones don't need a very detailed error.

Njuelle avatar Nov 04 '20 15:11 Njuelle

I don't agree because even non-dev people can copy paste the error message and send it to us for example.

Also Kuzzle error messages are meant to be read by end users so they gave give them information they need to understand what goes wrong

Aschen avatar Nov 04 '20 16:11 Aschen

interesting point... I think that not all error are "pretty-printable" on a toast (the toast is often too small to show them) but the idea of Kuzzle returning human-readable errors that the user can copy-paste to us is nice.

xbill82 avatar Nov 05 '20 09:11 xbill82

Maybe the toast should be bigger then?

Error messages are not that big: https://docs.kuzzle.io/core/2/api/essentials/error-codes/api/

Aschen avatar Nov 05 '20 10:11 Aschen

Yes, I think the toast should definitely be bigger

xbill82 avatar Nov 05 '20 15:11 xbill82

May it be possible to have a small copy/paste btn? Screenshot 2020-11-05 at 16 49 14

So that toast can still remain small and we can get the full error message ?

rolljee avatar Nov 05 '20 15:11 rolljee