engine/http/RequestHandler: show debug info when rendering server error only in dev environment or for authenticated admins
This commit is contained in:
parent
a3850dc679
commit
5526518b56
@ -116,7 +116,10 @@ abstract class RequestHandler
|
||||
case HTTPCode::NotFound:
|
||||
$skin->renderNotFound();
|
||||
default:
|
||||
$skin->renderError($code->getTitle(), $message, $stacktrace);
|
||||
$show_debug_info = isDev() || isAdmin();
|
||||
$skin->renderError($code->getTitle(),
|
||||
$show_debug_info ? $message : null,
|
||||
$show_debug_info ? $stacktrace : null);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user