mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
MVC - prevent UserExceptions to end up in the crash reporter. closes https://github.com/opnsense/core/issues/6098
This commit is contained in:
parent
fcbceadb76
commit
ac73ab9021
@ -23,7 +23,9 @@ try {
|
||||
|
||||
echo $application->handle($_SERVER['REQUEST_URI'])->getContent();
|
||||
} catch (\Error | \Exception $e) {
|
||||
error_log($e);
|
||||
if (!is_a($e, 'OPNsense\Base\UserException')) {
|
||||
error_log($e);
|
||||
}
|
||||
|
||||
$response = [
|
||||
'errorMessage' => $e->getMessage(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user