diff options
Diffstat (limited to 'Http')
-rw-r--r-- | Http/Firewall/ExceptionListener.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Http/Firewall/ExceptionListener.php b/Http/Firewall/ExceptionListener.php index 2d1549d..eacc36f 100644 --- a/Http/Firewall/ExceptionListener.php +++ b/Http/Firewall/ExceptionListener.php @@ -80,7 +80,7 @@ class ExceptionListener try { $response = $this->startAuthentication($request, $exception); } catch (\Exception $e) { - $event->set('exception', $e); + $event->setException($e); return; } @@ -94,7 +94,7 @@ class ExceptionListener try { $response = $this->startAuthentication($request, new InsufficientAuthenticationException('Full authentication is required to access this resource.', $token, 0, $exception)); } catch (\Exception $e) { - $event->set('exception', $e); + $event->setException($e); return; } |