소스 검색

[TwigBundle] fixed typo

Fabien Potencier 14 년 전
부모
커밋
79bc233344
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/Symfony/Bundle/TwigBundle/TwigEngine.php

+ 1 - 2
src/Symfony/Bundle/TwigBundle/TwigEngine.php

@@ -68,7 +68,7 @@ class TwigEngine implements EngineInterface
     {
         try {
             $this->load($name);
-        } catch (\Twig_Error_Loader $e) {
+        } catch (\InvalidArgumentException $e) {
             return false;
         }
 
@@ -133,6 +133,5 @@ class TwigEngine implements EngineInterface
         } catch (\Twig_Error_Loader $e) {
             throw new \InvalidArgumentException($e->getMessage(), $e->getCode(), $e);
         }
-        
     }
 }