Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions modules/cms/classes/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Session;
use Request;
use Response;
use Exception;
use Throwable;
use SystemException;
use BackendAuth;
use Twig\Environment as TwigEnvironment;
Expand Down Expand Up @@ -778,8 +778,8 @@ protected function execAjaxHandlers()
$responseContents['X_WINTER_ERROR_MESSAGE'] = $ex->getMessage();
throw new AjaxException($responseContents);
}
catch (Exception $ex) {
throw $ex;
catch (Throwable $ex) {
throw new SystemException(Lang::get('cms::lang.ajax_handler.error_occurred'), previous: $ex);
}
}

Expand Down
1 change: 1 addition & 0 deletions modules/cms/lang/en/lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
'ajax_handler' => [
'invalid_name' => 'Invalid AJAX handler name: :name.',
'not_found' => "AJAX handler ':name' was not found.",
'error_occurred' => 'An error occurred while executing the AJAX handler.',
],
'cms' => [
'menu_label' => 'CMS',
Expand Down