-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The error message from PackageLoader could be more helpful #1705
Comments
Happy to review a PR. |
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When following the basics of setting up jinja2, if you don't create the appropriate
templates
directory in your package, you get this error message:This could be significantly improved by explaining the actual problem: The PackageLoader could not find a suitable "templates" directory.
To replicate, add this to
mypackage.py
:If you run
python mypackage.py
you will see a traceback similar to this:Seeing an error message that explained that jinja2 couldn't find an appropriate "templates" directory would be much better.
Environment:
The text was updated successfully, but these errors were encountered: