Selaa lähdekoodia

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

fix: Error/CommandError have a output format for 1 argument
TW 1 vuosi sitten
vanhempi
sitoutus
4abc7f18cd
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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)