瀏覽代碼

IntegrityError: add placeholder for message, fixes #1572

So that the message we give appears not only in the traceback, but also in the (short) error message.
Thomas Waldmann 8 年之前
父節點
當前提交
7434010cdd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      borg/helpers.py

+ 1 - 1
borg/helpers.py

@@ -64,7 +64,7 @@ class ErrorWithTraceback(Error):
 
 
 class IntegrityError(ErrorWithTraceback):
-    """Data integrity error"""
+    """Data integrity error: {}"""
 
 
 class ExtensionModuleError(Error):