mvc: fix undefined $e

This commit is contained in:
Franco Fichtner 2024-05-13 22:52:58 +02:00
parent 83e73c5825
commit bca7574fab

View File

@ -39,7 +39,7 @@ try {
}
} catch (\OPNsense\Base\UserException $e) {
error_output(500, $e, $e->getMessage());
} catch (\OPNsense\Mvc\Exceptions\DispatchException) {
} catch (\OPNsense\Mvc\Exceptions\DispatchException $e) {
error_output(404, $e, gettext('Endpoint not found'));
} catch (\Error | \Exception $e) {
error_output(500, $e, gettext('Unexpected error, check log for details'));