Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit 79f8b2e

Browse files
committed
feat(exception): Update error page
1 parent 768c362 commit 79f8b2e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

templates/bundles/TwigBundle/Exception/error.html.twig

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,18 @@
88
<h2>系統出錯 😰</h2>
99
<p>系統發生 HTTP {{ status_code }} {{ status_text }} 錯誤。</p>
1010
<p>
11-
請聯絡<a href="mailto:dbplay@pan93.com">系統管理員</a>進行修正,並附上下面錯誤資訊的所有內容。
12-
如果你想挑戰修正這個問題,下方為相關的堆疊資訊,您可以到 <a href="https://github.com/database-playground/app-sf">GitHub</a>
11+
請 <a href="{{ url('app_feedback', {
12+
url: app.request.uri,
13+
description: "請在這裡撰寫回饋訊息。不要刪到下面的資訊。\n\n---\nException:\n#{exception.message} (#{exception.file}:#{exception.line})\n#{exception.traceAsString}",
14+
}) }}">點選這個連結打開回饋表單</a> 進行問題回報。
15+
如果你想挑戰修正這個問題,下方為相關的堆疊資訊,您可以到
16+
<a href="https://github.com/database-playground/app-sf">GitHub</a>
1317
上送交修正。
1418
</p>
1519

1620
<h3>錯誤資訊</h3>
1721
<p><strong>{{ exception.message }}</strong> ({{ exception.file }}:{{ exception.line }})</p>
1822
<pre>
19-
{{ exception.trace|json_encode(constant('JSON_PRETTY_PRINT')) }}
23+
{{ exception.traceAsString }}
2024
</pre>
2125
{% endblock %}

0 commit comments

Comments
 (0)