Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit bdd3227

Browse files
Fix exception messages containing exception messages
1 parent 83f9f92 commit bdd3227

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Http/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)