소스 검색

[FrameworkBundle] added an error message when an exception is thrown when handling another exception

Fabien Potencier 15 년 전
부모
커밋
50617e1acb
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/Symfony/Bundle/FrameworkBundle/Controller/ExceptionListener.php

+ 2 - 0
src/Symfony/Bundle/FrameworkBundle/Controller/ExceptionListener.php

@@ -72,6 +72,8 @@ class ExceptionListener
 
             error_log(sprintf('%s: %s', get_class($exception), $exception->getMessage()));
         } catch (\Exception $e) {
+            error_log(sprintf('Exception thrown when handling an exception (%s: %s)', get_class($e), $e->getMessage()));
+
             return false;
         }