diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-11-05 19:45:41 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-11-05 19:55:17 +0100 |
commit | cfdd2094407e61f371c02117c8c66916a6d1d807 (patch) | |
tree | 5f3083c9b8d7078dbb1e9986db4fb7f6f8b6266b /tpl/default | |
parent | 48df9f45b8c4b2995c1e04146071628668531b37 (diff) | |
download | Shaarli-cfdd2094407e61f371c02117c8c66916a6d1d807.tar.gz Shaarli-cfdd2094407e61f371c02117c8c66916a6d1d807.tar.zst Shaarli-cfdd2094407e61f371c02117c8c66916a6d1d807.zip |
Display error details even with dev.debug set to false
It makes more sense to display the error even if it's unexpected.
Only for logged in users.
Fixes #1606
Diffstat (limited to 'tpl/default')
-rw-r--r-- | tpl/default/error.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tpl/default/error.html b/tpl/default/error.html index c3e0c3c1..34f9707d 100644 --- a/tpl/default/error.html +++ b/tpl/default/error.html | |||
@@ -9,13 +9,17 @@ | |||
9 | <div id="pageError" class="page-error-container center"> | 9 | <div id="pageError" class="page-error-container center"> |
10 | <h2>{$message}</h2> | 10 | <h2>{$message}</h2> |
11 | 11 | ||
12 | <img src="{$asset_path}/img/sad_star.png#" alt=""> | ||
13 | |||
14 | {if="!empty($text)"} | ||
15 | <p>{$text}</p> | ||
16 | {/if} | ||
17 | |||
12 | {if="!empty($stacktrace)"} | 18 | {if="!empty($stacktrace)"} |
13 | <pre> | 19 | <pre> |
14 | {$stacktrace} | 20 | {$stacktrace} |
15 | </pre> | 21 | </pre> |
16 | {/if} | 22 | {/if} |
17 | |||
18 | <img src="{$asset_path}/img/sad_star.png#" alt=""> | ||
19 | </div> | 23 | </div> |
20 | {include="page.footer"} | 24 | {include="page.footer"} |
21 | </body> | 25 | </body> |