mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-09 00:32:37 -04:00
Allow message for Error base class
This commit is contained in:
parent
80c6b4a3ec
commit
9de2645ae9
1 changed files with 4 additions and 2 deletions
|
|
@ -108,7 +108,8 @@ def set_ec(ec):
|
|||
|
||||
|
||||
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),
|
||||
|
|
@ -128,7 +129,8 @@ class Error(Exception):
|
|||
|
||||
|
||||
class ErrorWithTraceback(Error):
|
||||
"""like Error, but show a traceback also"""
|
||||
"""Error: {}"""
|
||||
# like Error, but show a traceback also
|
||||
traceback = True
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue