Include headers in error message.

This commit is contained in:
James Cole
2022-03-06 16:03:52 +01:00
parent 2f55499f7d
commit 059bf32563
5 changed files with 34 additions and 4 deletions

View File

@@ -27,7 +27,6 @@
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
{{ trans('email.error_ip', { ip: ip }) }} (<a href="https://ipinfo.io/{{ ip }}/json?token={{ token }}">info</a>)<br />
{{ trans('email.error_url', {url :url }) }}<br />
{{ trans('email.error_user_agent', {userAgent: userAgent }) }}
</p>
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
@@ -42,4 +41,16 @@
<p style="font-family: monospace;font-size:11px;color:#aaa">
{{ stackTrace|nl2br }}
</p>
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
{{ trans('email.error_headers') }}
</p>
<p style="font-family: monospace;font-size:11px;color:#aaa">
{% for key, header in headers %}
{% if (key != 'cookie') and header[0] != '' %}
- {{ key }}: {{ header[0] }}<br>
{% endif %}
{% endfor %}
</p>
{% include 'emails.footer-html' %}

View File

@@ -24,4 +24,14 @@
{{ trans('email.error_stacktrace_below')|raw }}
{{ stackTrace|raw }}
{{ trans('email.error_headers') }}
{% for key, header in headers %}
{% if (key != 'cookie') and header[0] != '' %}
- {{ key }}: {{ header[0] }}
{% endif %}
{% endfor %}
{% include 'emails.footer-text' %}