Browse Source

Add missing exception to 404 list.

mscherer 7 years ago
parent
commit
4333076eb5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/Error/ErrorHandlerTrait.php

+ 2 - 0
src/Error/ErrorHandlerTrait.php

@@ -2,6 +2,7 @@
 
 namespace Tools\Error;
 
+use Cake\Controller\Exception\AuthSecurityException;
 use Cake\Controller\Exception\MissingActionException;
 use Cake\Controller\Exception\SecurityException;
 use Cake\Core\Configure;
@@ -47,6 +48,7 @@ trait ErrorHandlerTrait {
 		MissingTemplateException::class,
 		UnavailableForLegalReasonsException::class,
 		SecurityException::class,
+		AuthSecurityException::class,
 		'Cake\Network\Exception\BadRequestException',
 		'Cake\Network\Exception\ConflictException',
 		'Cake\Network\Exception\GoneException',