diff options
author | Thomas Waldmann <tw@waldmann-edv.de> | 2020-12-25 02:20:28 +0100 |
---|---|---|
committer | Thomas Waldmann <tw@waldmann-edv.de> | 2020-12-25 02:20:28 +0100 |
commit | 6916d1b3bc8d25d9e6f6254459abd3e21f4dc1e3 (patch) | |
tree | 3c779f180f89195e47a76fc452d41b9a186dd8c6 | |
parent | 586351e6fb1b7d6be113a86372f6b933473d577a (diff) |
use strerror(e.errno) to get verbose error msg1.1.15
otherwise it is just like: [Errno NN] Exxxxx
-rw-r--r-- | src/borg/archive.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/borg/archive.py b/src/borg/archive.py index 9ae4358b9..612f7cab0 100644 --- a/src/borg/archive.py +++ b/src/borg/archive.py @@ -784,7 +784,7 @@ Utilization of max. archive size: {csize_max:.0%} # generic handler # EACCES: permission denied to set this specific xattr (this may happen related to security.* keys) # EPERM: operation not permitted - err_str = str(e) + err_str = os.strerror(e.errno) logger.warning(msg_format % err_str) set_ec(EXIT_WARNING) # bsdflags include the immutable flag and need to be set last: |