From 9de2645ae9b7c8011a84500f925d4698e9124507 Mon Sep 17 00:00:00 2001 From: finefoot <33361833+finefoot@users.noreply.github.com> Date: Sat, 11 Apr 2020 13:25:56 +0200 Subject: [PATCH] Allow message for Error base class --- src/borg/helpers.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/borg/helpers.py b/src/borg/helpers.py index 6564b6ad1..24fed1463 100644 --- a/src/borg/helpers.py +++ b/src/borg/helpers.py @@ -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