From f285e90912bb6fd5fdcbeae1b0e4edc5a05f18b3 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 25 Oct 2015 02:53:36 +0200 Subject: [PATCH] archiver: add E status as error indication E means that an error occured when processing this (single) item --- borg/archiver.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/borg/archiver.py b/borg/archiver.py index d3033b0d1..c0f5b21a5 100644 --- a/borg/archiver.py +++ b/borg/archiver.py @@ -151,6 +151,7 @@ Type "Yes I am sure" if you understand this and want to continue.\n""") try: status = archive.process_stdin(path, cache) except IOError as e: + status = 'E' self.print_warning('%s: %s', path, e) else: status = '-' @@ -205,6 +206,7 @@ Type "Yes I am sure" if you understand this and want to continue.\n""") try: status = archive.process_file(path, st, cache) except IOError as e: + status = 'E' self.print_warning('%s: %s', path, e) elif stat.S_ISDIR(st.st_mode): if exclude_caches and is_cachedir(path): @@ -214,6 +216,7 @@ Type "Yes I am sure" if you understand this and want to continue.\n""") try: entries = os.listdir(path) except OSError as e: + status = 'E' self.print_warning('%s: %s', path, e) else: for filename in sorted(entries):