diff --git a/src/Symfony/Bundle/TwigBundle/Loader/FilesystemLoader.php b/src/Symfony/Bundle/TwigBundle/Loader/FilesystemLoader.php index 65afe2a33e..faf5ce3217 100644 --- a/src/Symfony/Bundle/TwigBundle/Loader/FilesystemLoader.php +++ b/src/Symfony/Bundle/TwigBundle/Loader/FilesystemLoader.php @@ -89,7 +89,10 @@ class FilesystemLoader extends \Twig_Loader_Filesystem } if (false === $file || null === $file) { - throw new \Twig_Error_Loader(sprintf('Unable to find template "%s".', $logicalName), -1, null, $previous); + list($namespace, $name) = $this->parseName($logicalName); + $paths = $this->getPaths($namespace); + array_walk($paths, function (&$path) use ($name) { $path .= '/' . $name; }); + throw new \Twig_Error_Loader(sprintf('Unable to find template "%s" (tried: %s).', $name, implode(', ', $paths)), -1, null, $previous); } return $this->cache[$logicalName] = $file;