From bca7574fab52cfe3f1c9b07bca448ef3fc301c2d Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Mon, 13 May 2024 22:52:58 +0200 Subject: [PATCH] mvc: fix undefined $e --- src/opnsense/www/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opnsense/www/api.php b/src/opnsense/www/api.php index 8105f9114..5d038de75 100644 --- a/src/opnsense/www/api.php +++ b/src/opnsense/www/api.php @@ -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'));