Show sentry_id as url to directly search on sentry from the 500 page.

parent 01ac1d48
<p>You've encountered an error, oh noes!</p>
{% if request.sentry.id %}
<p>If you need assistance, you may reference this error as
<strong>{{ request.sentry.id }}</strong>.</p>
<p>If you need assistance, you may reference this error as
{% if admin_instance %}
<a href="https://sentry.io/internet-cleanup-foundation/faalkaart/?query={{ request.sentry.id }}">{{ request.sentry.id }}</a>,
{% else %}
<strong>{{ request.sentry.id }}</strong>.</p>
{% endif %}
{% endif %}
{% if exception_message %}
......
......@@ -65,7 +65,7 @@ if settings.SENTRY_DSN:
Context: None
"""
context = {'request': request}
context = {'request': request, 'admin_instance': settings.ADMIN}
# on privileged instance show the actual error message to hopefully be useful for the user
if settings.ADMIN:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment