So that the message we give appears not only in the traceback, but also in the (short) error message.
@@ -64,7 +64,7 @@ class ErrorWithTraceback(Error):
class IntegrityError(ErrorWithTraceback):
- """Data integrity error"""
+ """Data integrity error: {}"""
class ExtensionModuleError(Error):