mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-22 14:11:27 +00:00
RPCError: include the exception args we get from remote
Without this, you just got "RCPError: AttributeError", now you get (e.g.): RPCError: AttributeError(b"'Repository' object has no attribute 'segments'",)
This commit is contained in:
parent
4ab4ecc7af
commit
954b26f64c
1 changed files with 2 additions and 2 deletions
|
@ -157,7 +157,7 @@ def fetch_from_cache(args):
|
|||
raise PathNotAllowed(*res)
|
||||
if error == b'ObjectNotFound':
|
||||
raise Repository.ObjectNotFound(res[0], self.location.orig)
|
||||
raise self.RPCError(error)
|
||||
raise self.RPCError("%s%r" % (error.decode('ascii'), res))
|
||||
else:
|
||||
yield res
|
||||
if not waiting_for and not calls:
|
||||
|
|
Loading…
Reference in a new issue