Exception info caught in django/template/debug.py should be propagated
|Reported by:||kuon||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
In django/template/debug.py at line 76, the exception is caught and replaced by another one, but info from the original exception are missing on the debug output.
For example, I was working with django-cms, installed a plugin, and that plugin was raising an exception. That exception was caught and replaced by a TemplateSyntaxError (line 78) with my own template name.
Original exception should be visible somewhere in the final debug output.