Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added exception name in debug error message

This can help when some exception has no error message.
  • Loading branch information...
commit cfee67ae100343f9e20f412a0b2c56e001d84eca 1 parent ced3e30
@claudep claudep authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/template/defaultfilters.py
View
2  django/template/defaultfilters.py
@@ -969,4 +969,4 @@ def pprint(value):
try:
return pformat(value)
except Exception as e:
- return "Error in formatting: %s" % force_text(e, errors="replace")
+ return "Error in formatting: %s: %s" % (e.__class__.__name__, force_text(e, errors="replace"))
Please sign in to comment.
Something went wrong with that request. Please try again.