Skip to content

Commit

Permalink
Do not claim something has been sent to any administator
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
thijskh committed Oct 8, 2024
1 parent 5dc97d7 commit 4d10e1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/EngineBlock/Application/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -124,7 +124,7 @@ public function shutdown()
if (ini_get('display_errors')) {
echo "<br />" . 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 . '<br /><br /> ERROR: ' . PHP_EOL . '<br />';
$message .= '<strong style="color: red"><pre>' . var_export($lastError->toArray(), true) . '</pre></strong>';
echo($message);
Expand Down

0 comments on commit 4d10e1f

Please sign in to comment.