mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
sentry: integration with error 500 page
This commit is contained in:
15
core/templates/core/500.jinja
Normal file
15
core/templates/core/500.jinja
Normal file
@ -0,0 +1,15 @@
|
||||
{% extends "core/base.jinja" %}
|
||||
{% block head %}
|
||||
{{ super() }}
|
||||
<script src="https://browser.sentry-cdn.com/4.0.6/bundle.min.js" crossorigin="anonymous"></script>
|
||||
{% endblock head %}
|
||||
|
||||
{% block content %}
|
||||
<h3>{% trans %}500, Server Error{% endtrans %}</h3>
|
||||
{% if request.sentry_dsn %}
|
||||
<script>
|
||||
Sentry.init({ dsn: '{{ request.sentry_dsn }}' });
|
||||
Sentry.showReportDialog({ eventId: '{{ request.sentry_last_event_id() }}' })
|
||||
</script>
|
||||
{% endif %}
|
||||
{% endblock content %}
|
Reference in New Issue
Block a user