mitmedialab / MediaCloud-Dashboard

Front-end for the MediaCloud database
https://dashboard.mediameter.org
Apache License 2.0
16 stars 6 forks source link

less scary error messages #260

Closed rahulbot closed 8 years ago

rahulbot commented 8 years ago

Change error message to something more friendly, depending on category of error. For instance, if someone has reached their quota, tell them that. If their query has a syntax error, tell them. If SOLR is down, tell them that there is a problem on our end, perhaps with a little "details" link they can click that shows the full error message.

hroberts commented 8 years ago

probably included in this implicitly, but we should also not spam the screen with multiple errors, as happens now if there is a problem with the query or with solr on the back end.

rahulbot commented 8 years ago

Assume that the three cases we want to tackle are those listed in my first comment: a) You have reached your quota, please email support@mediacloud.org to let us know why you might need a higher quota of queries. b) You have a syntax error in your query. Please change it and try again c) You've run into an error - sorry. Please email support@mediacloud.org if this happens over and over.
Where (c) is the "else" case... ie. it shows up if it isn't (a) or (b).

Each of these should end with a "see the technical details" link that opens up a hidden div which includes the entire user-unfriendly error message.

rahulbot commented 8 years ago

Looks good in the errors I've seen so far. Nice.