Merge pull request #8108 from ThomasWaldmann/new-rc-fix-1.4

fix: Error/CommandError have a output format for 1 argument
This commit is contained in:
TW 2024-02-20 12:54:53 +01:00 committed by GitHub
commit 4abc7f18cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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)