mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Added exception name in debug error message
This can help when some exception has no error message.
This commit is contained in:
		| @@ -969,4 +969,4 @@ def pprint(value): | |||||||
|     try: |     try: | ||||||
|         return pformat(value) |         return pformat(value) | ||||||
|     except Exception as e: |     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")) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user