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 
This commit is contained in:
ArthurHoaro 2020-11-05 19:45:41 +01:00
parent 48df9f45b8
commit cfdd209440
5 changed files with 58 additions and 10 deletions
inc/languages/fr/LC_MESSAGES

View file

@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: Shaarli\n"
"POT-Creation-Date: 2020-11-05 16:47+0100\n"
"PO-Revision-Date: 2020-11-05 16:48+0100\n"
"POT-Creation-Date: 2020-11-05 19:43+0100\n"
"PO-Revision-Date: 2020-11-05 19:44+0100\n"
"Last-Translator: \n"
"Language-Team: Shaarli\n"
"Language: fr_FR\n"
@ -501,7 +501,15 @@ msgstr "mois"
msgid "Monthly"
msgstr "Mensuel"
#: application/front/controller/visitor/ErrorController.php:33
#: application/front/controller/visitor/ErrorController.php:30
msgid "Error: "
msgstr "Erreur : "
#: application/front/controller/visitor/ErrorController.php:34
msgid "Please report it on Github."
msgstr "Merci de la rapporter sur Github."
#: application/front/controller/visitor/ErrorController.php:39
msgid "An unexpected error occurred."
msgstr "Une erreur inattendue s'est produite."