Skip to content
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

Ability to show traceback of template errors #3298

Closed
danrossi opened this issue Apr 14, 2024 · 2 comments
Closed

Ability to show traceback of template errors #3298

danrossi opened this issue Apr 14, 2024 · 2 comments

Comments

@danrossi
Copy link

This is a common problem people have and has caused me many hours trying to fix template problems in the past. On template errors, it doesn't show the actual trace of the line of the template with the error it only returns the top message string here

https://github.com/getpelican/pelican/blob/master/pelican/__init__.py#L590

I found adding this within the exception catch it shows the full stack to help figure out the issue.

traceback.print_exception(e)
@avaris
Copy link
Member

avaris commented Apr 16, 2024

Did you try it with master? This should be fixed with #3257

@justinmayer justinmayer changed the title Ability to show traceback of temple errors Ability to show traceback of template errors Apr 16, 2024
@danrossi
Copy link
Author

I made a typo with the subject. It looks like I should be able to pipenv github and should fix the issue then. I've installed the released version. I'll close this thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants