From 580508eda4662578fda279445401d4697507aee8 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 18 Oct 2012 08:34:35 +0200 Subject: [PATCH] fixed wrong exception class in the filesystem loader --- lib/Twig/Loader/Filesystem.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/Twig/Loader/Filesystem.php b/lib/Twig/Loader/Filesystem.php index eb9c7cd..6b7f5ff 100644 --- a/lib/Twig/Loader/Filesystem.php +++ b/lib/Twig/Loader/Filesystem.php @@ -163,7 +163,7 @@ class Twig_Loader_Filesystem implements Twig_LoaderInterface $namespace = '__main__'; if (isset($name[0]) && '@' == $name[0]) { if (false === $pos = strpos($name, '/')) { - throw new InvalidArgumentException(sprintf('Malformed namespaced template name "%s" (expecting "@namespace/template_name").', $name)); + throw new Twig_Error_Loader(sprintf('Malformed namespaced template name "%s" (expecting "@namespace/template_name").', $name)); } $namespace = substr($name, 1, $pos - 1); -- 1.7.2.5