Skip to content

Commit a9d2467

Browse files
committed
fix error message layour issue
1 parent fb26609 commit a9d2467

File tree

1 file changed

+30
-26
lines changed

1 file changed

+30
-26
lines changed

sqlpage/templates/error.handlebars

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
1-
<div class="alert alert-danger text-muted mt-2" role="alert">
2-
<p>
3-
<span class="status status-red">
4-
<span class="status-dot status-dot-animated"></span> Error
5-
</span>
6-
We are sorry, but an error occurred while generating this page.
7-
You should contact the site's administrator.
8-
</p>
9-
<p>
10-
{{#if query_number}}
11-
Error in query number <strong>{{query_number}}</strong>:
12-
{{/if}}
13-
</p>
14-
<pre><code>{{description}}</code></pre>
15-
{{#if backtrace}}
16-
<details open class="fs-5">
17-
<summary>Backtrace</summary>
18-
{{~#each backtrace~}}
19-
<pre class="fs-5 mt-1 p-1 my-1"><code>{{this}}</code></pre>
20-
{{~/each~}}
21-
</details>
22-
{{/if}}
23-
{{#if note}}
24-
<p class="fs-5 mt-1 p-1 my-1">{{note}}</p>
25-
{{/if}}
26-
</div>
1+
<div class="alert alert-danger mt-2" role="alert">
2+
<div class="alert-icon">
3+
{{icon_img 'alert-hexagon'}}
4+
</div>
5+
<div class="overflow-auto">
6+
<h4 class="alert-title">
7+
{{#if query_number}}
8+
Error in query number <strong>{{query_number}}</strong>
9+
{{else}}
10+
An error occurred
11+
{{/if}}
12+
</h4>
13+
<div class="text-muted">
14+
<p>We are sorry, but an error occurred while generating this page. You should contact the site's
15+
administrator.</p>
16+
<pre class="mt-2"><code>{{description}}</code></pre>
17+
{{#if backtrace}}
18+
<details class="mt-2">
19+
<summary>Backtrace</summary>
20+
{{~#each backtrace~}}
21+
<pre class="fs-6 mt-1 p-1 my-1"><code>{{this}}</code></pre>
22+
{{~/each~}}
23+
</details>
24+
{{/if}}
25+
{{#if note}}
26+
<p class="fs-6 mt-1 p-1 my-1"><strong>Note:</strong> {{note}}</p>
27+
{{/if}}
28+
</div>
29+
</div>
30+
</div>

0 commit comments

Comments
 (0)