Skip to content

Commit 06ebbba

Browse files
Fix exception messages containing exception messages
1 parent 84657e5 commit 06ebbba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firewall/SwitchUserListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function handle(GetResponseEvent $event)
100100
try {
101101
$this->tokenStorage->setToken($this->attemptSwitchUser($request, $username));
102102
} catch (AuthenticationException $e) {
103-
throw new \LogicException(sprintf('Switch User failed: "%s".', $e->getMessage()));
103+
throw new \LogicException('Switch User failed: '.$e->getMessage());
104104
}
105105
}
106106

0 commit comments

Comments
 (0)