Browse files

Fixed incorrect error message in django.template.loaders.filesystem i…

…f you pass in template_dirs=None. Thanks, Martin Glueck

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
adrianholovaty committed Aug 13, 2006
1 parent 3e51dac commit 0f000b7ae5b257451fbe3d266fba902ee27ba54e
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/template/loaders/
@@ -17,7 +17,7 @@ def load_template_source(template_name, template_dirs=None):
return (open(filepath).read(), filepath)
except IOError:
- if template_dirs:
+ if tried:
error_msg = "Tried %s" % tried
error_msg = "Your TEMPLATE_DIRS setting is empty. Change it to point to at least one template directory."

0 comments on commit 0f000b7

Please sign in to comment.