Display full path to the LOGS directory in SensitiveException

This commit is contained in:
tobi132 2019-12-03 00:37:23 +01:00
parent a55ec208aa
commit a26538c3f0

View File

@ -8,7 +8,7 @@ require LIBS . 'SensitiveException.php';
function exception_handler($exception) {
$message = $exception->getMessage();
if($exception instanceof SensitiveException) {
$message = 'This error is sensitive and has been logged into system/logs/error.log.<br/>View this file for more information.';
$message = 'This error is sensitive and has been logged into ' . LOGS . 'error.log.<br/>View this file for more information.';
// log error to file
$f = fopen(LOGS . 'error.log', 'ab');