Browse Source

[TwigBundle] fixed typo

Fabien Potencier 14 years ago
parent
commit
79bc233344
1 changed files with 1 additions and 2 deletions
  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 {
         try {
             $this->load($name);
             $this->load($name);
-        } catch (\Twig_Error_Loader $e) {
+        } catch (\InvalidArgumentException $e) {
             return false;
             return false;
         }
         }
 
 
@@ -133,6 +133,5 @@ class TwigEngine implements EngineInterface
         } catch (\Twig_Error_Loader $e) {
         } catch (\Twig_Error_Loader $e) {
             throw new \InvalidArgumentException($e->getMessage(), $e->getCode(), $e);
             throw new \InvalidArgumentException($e->getMessage(), $e->getCode(), $e);
         }
         }
-        
     }
     }
 }
 }