Explorar el Código

[TwigBundle] fixed typo

Fabien Potencier hace 14 años
padre
commit
79bc233344
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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);
         }
-        
     }
 }