From 420ef45f6381fffad78652cc9bda48b832ea4348 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Tue, 20 Feb 2024 04:23:02 +0100 Subject: [PATCH] fix: Error/CommandError have a output format for 1 argument (backport from master, only thing todo here was that one place) --- src/borg/archiver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borg/archiver.py b/src/borg/archiver.py index 18157d9ed..ae2365aee 100644 --- a/src/borg/archiver.py +++ b/src/borg/archiver.py @@ -547,7 +547,7 @@ class Archiver: if rc != 0: raise CommandError(f'Command {args.paths[0]!r} exited with status {rc}') except BackupError as e: - raise Error('%s: %s', path, e) + raise Error(f'{path!r}: {e}') else: status = '-' self.print_file_status(status, path)