From 235b1310152d00bfdfadfec7adf1d5e6df26846e Mon Sep 17 00:00:00 2001 From: finefoot <33361833+finefoot@users.noreply.github.com> Date: Sat, 11 Apr 2020 12:58:04 +0200 Subject: [PATCH] Allow message for Error base class --- src/borg/helpers/errors.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/borg/helpers/errors.py b/src/borg/helpers/errors.py index 80a47a9b6..e7a5fec1f 100644 --- a/src/borg/helpers/errors.py +++ b/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