From 1ed7606c3247ad73c1a8dd4a4d2bdfa9158c391f Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Sun, 23 Nov 2014 21:05:05 +0100 Subject: [PATCH] [Debug] fix error message on double exception --- src/Symfony/Component/Debug/ExceptionHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Debug/ExceptionHandler.php b/src/Symfony/Component/Debug/ExceptionHandler.php index c7864dc961..cd7c51bdad 100644 --- a/src/Symfony/Component/Debug/ExceptionHandler.php +++ b/src/Symfony/Component/Debug/ExceptionHandler.php @@ -169,7 +169,7 @@ EOF } catch (\Exception $e) { // something nasty happened and we cannot throw an exception anymore if ($this->debug) { - $title = sprintf('Exception thrown when handling an exception (%s: %s)', get_class($exception), $exception->getMessage()); + $title = sprintf('Exception thrown when handling an exception (%s: %s)', get_class($e), $e->getMessage()); } else { $title = 'Whoops, looks like something went wrong.'; }