superset/superset-frontend/src/components/ErrorMessage
Maxime Beauchemin b2af0c0e22
style(sqllab): make database errors more clear and render as monospace (#11075)
* style(sqllab): make database errors more clear and render as monospace

In SQL Lab, when a database error message is returned, generally because
of a user error in the SQL, it's identified as an "Unexpected Error" and
some of the text formatting of the error message (\n, spaces, tabs, ...)
are lost as they are rendered in html.

This PR identifies the error as a "Database Error", and renders like
more like a <pre>, using a monospace font.

* fix the build

* addressing comments

* addressed comments

* lint + removing cruft

* addressing comments
2020-10-06 12:50:38 -07:00
..
DatabaseErrorMessage.tsx refactor: merge/upgrade superset-ui packages (#10790) 2020-09-09 13:18:55 -07:00
ErrorAlert.tsx feat: adding all icons from the design system to the codebase (#11033) 2020-09-25 14:49:30 -07:00
ErrorMessageWithStackTrace.tsx style(sqllab): make database errors more clear and render as monospace (#11075) 2020-10-06 12:50:38 -07:00
getErrorMessageComponentRegistry.ts feat(errors): add client scaffolding for custom error messages (#9677) 2020-04-29 17:20:31 -07:00
IssueCode.tsx docs: add back issue code links (#10903) 2020-09-16 09:28:53 -07:00
TimeoutErrorMessage.tsx refactor: merge/upgrade superset-ui packages (#10790) 2020-09-09 13:18:55 -07:00
types.ts feat: more specific presto error messages (#11099) 2020-09-29 21:50:58 -07:00