Quellcode durchsuchen

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

(backport from master, only thing todo here was that one place)
Thomas Waldmann vor 1 Jahr
Ursprung
Commit
420ef45f63
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/borg/archiver.py

+ 1 - 1
src/borg/archiver.py

@@ -547,7 +547,7 @@ class Archiver:
                         if rc != 0:
                         if rc != 0:
                             raise CommandError(f'Command {args.paths[0]!r} exited with status {rc}')
                             raise CommandError(f'Command {args.paths[0]!r} exited with status {rc}')
                     except BackupError as e:
                     except BackupError as e:
-                        raise Error('%s: %s', path, e)
+                        raise Error(f'{path!r}: {e}')
                 else:
                 else:
                     status = '-'
                     status = '-'
                 self.print_file_status(status, path)
                 self.print_file_status(status, path)