fix nested exception bug
Fix reversion introduced in version 6.20180316 that caused git-annex to stop processing files when unable to contact a ssh remote. The bug was not in any of the changed lines, but this one in inAnnex: P2PHelper.checkpresent (Ssh.runProto rmt connpool (cantCheck rmt) fallback) key cantCheck throws an exception, but that parameter to runProto expects a value, which it returns. So, inAnnex is returning a Bool containing an exception. This defeats the usual checks for checkPresent throwing an exception, crashing git-annex. Fixed by making runProto take an `Annex a` instead of an `a`, so passing cantCheck to it doesn't nest exceptions. This commit was sponsored by andrea rota.
This commit is contained in:
parent
edd257dcfb
commit
9f3a346f25
4 changed files with 19 additions and 6 deletions
|
@ -0,0 +1,11 @@
|
|||
[[!comment format=mdwn
|
||||
username="joey"
|
||||
subject="""comment 1"""
|
||||
date="2018-07-03T17:00:26Z"
|
||||
content="""
|
||||
Thanks for reporting, I've reproduced and fixed the bug.
|
||||
|
||||
Please file bugs in the bug tracker in the future,
|
||||
that will prevent me missing them or responding as slowly as I did with
|
||||
this one.
|
||||
"""]]
|
Loading…
Add table
Add a link
Reference in a new issue