فهرست منبع

Allow message for Error base class

finefoot 5 سال پیش
والد
کامیت
9de2645ae9
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      src/borg/helpers.py

+ 4 - 2
src/borg/helpers.py

@@ -108,7 +108,8 @@ def set_ec(ec):
 
 
 
 
 class Error(Exception):
 class Error(Exception):
-    """Error base class"""
+    """Error: {}"""
+    # Error base class
 
 
     # if we raise such an Error and it is only catched by the uppermost
     # if we raise such an Error and it is only catched by the uppermost
     # exception handler (that exits short after with the given exit_code),
     # exception handler (that exits short after with the given exit_code),
@@ -128,7 +129,8 @@ class Error(Exception):
 
 
 
 
 class ErrorWithTraceback(Error):
 class ErrorWithTraceback(Error):
-    """like Error, but show a traceback also"""
+    """Error: {}"""
+    # like Error, but show a traceback also
     traceback = True
     traceback = True