datagov-cz / mission-control

Tento repozitář je udržován v rámci projektu OPZ č. CZ.03.4.74/0.0/0.0/15_025/0013983.
MIT License
2 stars 1 forks source link

[#121] Provide better error report to user if something goes wrong #123

Closed karelklima closed 3 years ago

karelklima commented 3 years ago

The goal of this PR is to give the user better error report if something goes wrong.

If an error origins from a XHR request, then it looks like this (the server message is displayed): image

In-app errors are reported as 500 - stack trace or other details are usually meaningless for user, and if someone is interested she can see the full error in console anyway.

Resolves #121

karelklima commented 3 years ago

@psiotwo I consider this report to be temporary and intended mostly for development purposes. We should not show the error details in production eventually, but rather monitor is using a dedicated service like Sentry (#122)