فهرست منبع

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

(backport from master, only thing todo here was that one place)
Thomas Waldmann 1 سال پیش
والد
کامیت
420ef45f63
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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)