enhanced filesystem loader error when a template is not found
authorfabien <fabien@93ef8e89-cb99-4229-a87c-7fa0fa45744b>
Thu, 15 Oct 2009 05:17:06 +0000 (05:17 +0000)
committerfabien <fabien@93ef8e89-cb99-4229-a87c-7fa0fa45744b>
Thu, 15 Oct 2009 05:17:06 +0000 (05:17 +0000)
git-svn-id: http://svn.twig-project.org/trunk@54 93ef8e89-cb99-4229-a87c-7fa0fa45744b

CHANGELOG
lib/Twig/Loader/Filesystem.php

index d3cec98..fbb8ef9 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,5 +1,6 @@
 * 0.9.2-DEV
 
+ * enhanced some error messages to ease debugging
  * fixed empty cache files when the template contains an error
 
 * 0.9.1 (2009-10-14)
index 9ce3956..c262808 100644 (file)
@@ -94,6 +94,6 @@ class Twig_Loader_Filesystem extends Twig_Loader
       return array(file_get_contents($file), filemtime($file));
     }
 
-    throw new RuntimeException(sprintf('Unable to find template "%s".', $name));
+    throw new RuntimeException(sprintf('Unable to find template "%s" (looked into: %s).', $name, implode(', ', $this->paths)));
   }
 }