Skip to content

Commit 1ed7606

Browse files
nicolas-grekasfabpot
authored andcommitted
[Debug] fix error message on double exception
1 parent 819280f commit 1ed7606

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Debug/ExceptionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function getContent(FlattenException $exception)
169169
} catch (\Exception $e) {
170170
// something nasty happened and we cannot throw an exception anymore
171171
if ($this->debug) {
172-
$title = sprintf('Exception thrown when handling an exception (%s: %s)', get_class($exception), $exception->getMessage());
172+
$title = sprintf('Exception thrown when handling an exception (%s: %s)', get_class($e), $e->getMessage());
173173
} else {
174174
$title = 'Whoops, looks like something went wrong.';
175175
}

0 commit comments

Comments
 (0)