From 4d10e1fb93a2bfff69357345bfa8ae0ec6c82467 Mon Sep 17 00:00:00 2001 From: Thijs Kinkhorst Date: Tue, 8 Oct 2024 13:42:08 +0200 Subject: [PATCH] Do not claim something has been sent to any administator There's no inherent guarantee in EB whatsoever that this error type will be sent to any administrator. Do not let people believe that it will be and wait for it to magically go away if they do nothing. --- library/EngineBlock/Application/ErrorHandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/EngineBlock/Application/ErrorHandler.php b/library/EngineBlock/Application/ErrorHandler.php index b9418c758a..83c0be8c3b 100644 --- a/library/EngineBlock/Application/ErrorHandler.php +++ b/library/EngineBlock/Application/ErrorHandler.php @@ -65,7 +65,7 @@ public function exception(Throwable $e) $this->_application->reportError($e); - $message = 'An exceptional condition occurred, it has been logged and sent to the administrator.'; + $message = 'An exceptional condition occurred. Contact support if this error persists.'; die($message); } @@ -124,7 +124,7 @@ public function shutdown() if (ini_get('display_errors')) { echo "
" . PHP_EOL; } - $message = 'A very serious error occurred, it has been logged and sent to the administrator.'; + $message = 'A very serious error occurred. Contact support if the error persists.'; $message .= PHP_EOL . '

ERROR: ' . PHP_EOL . '
'; $message .= '
' . var_export($lastError->toArray(), true) . '
'; echo($message);