Browse Source

Merge pull request #5100 from finefoot/patch-12

Allow message for Error base class
TW 5 years ago
parent
commit
9ac97e6d0b
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/borg/helpers/errors.py

+ 4 - 2
src/borg/helpers/errors.py

@@ -4,7 +4,8 @@ import borg.crypto.low_level
 
 
 class Error(Exception):
-    """Error base class"""
+    """Error: {}"""
+    # Error base class
 
     # 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),
@@ -24,7 +25,8 @@ class Error(Exception):
 
 
 class ErrorWithTraceback(Error):
-    """like Error, but show a traceback also"""
+    """Error: {}"""
+    # like Error, but show a traceback also
     traceback = True