riffm / mint

indention-based template engine, implemented in python
MIT License
64 stars 51 forks source link

TemplateNotFound description #36

Open Harut opened 12 years ago

Harut commented 12 years ago
diff -r 94ac5c1e9f6b third-party/mint.py
--- a/third-party/mint.py       Sun Jul 22 22:38:44 2012 +0400
+++ b/third-party/mint.py       Fri Jul 27 16:19:43 2012 +0400
@@ -1466,7 +1466,7 @@
                     if self.cache:
                         self._templates_cache[template] = tmpl
                     return tmpl
-        raise TemplateNotFound(template)
+        raise TemplateNotFound("%s in %s" % (template, self.dirs))

     def __add__(self, other):
         dirs = self.dirs + other.dirs
riffm commented 12 years ago

+1