1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-03-09 21:57:24 +00:00

fix: Error/CommandError have a output format for 1 argument

(backport from master, only thing todo here was that one place)
This commit is contained in:
Thomas Waldmann 2024-02-20 04:23:02 +01:00
parent 52c90786fc
commit 420ef45f63
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -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)