Explorar o código

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

fix: Error/CommandError have a output format for 1 argument
TW hai 1 ano
pai
achega
4abc7f18cd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/borg/archiver.py

+ 1 - 1
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)