fix handling of ERROR in response to REMOVE
This allows an error message from a proxied special remote to be displayed to the client. In the case where removal from several nodes of a cluster fails, there can be several errors. What to do? I decided to only show the first error to the user. Probably in this case the user is not in a position to do anything about an error message, so best keep it simple. If the problem with the first node is fixed, they'll see the error from the next node.
This commit is contained in:
parent
a6ea057f6b
commit
158d7bc933
5 changed files with 31 additions and 23 deletions
|
@ -456,7 +456,7 @@ dropKey' repo r st@(State connpool duc _ _ _) key
|
|||
)
|
||||
| Git.repoIsHttp repo = giveup "dropping from http remote not supported"
|
||||
| otherwise = P2PHelper.remove (uuid r)
|
||||
(Ssh.runProto r connpool (return (False, Nothing))) key
|
||||
(Ssh.runProto r connpool (return (Right False, Nothing))) key
|
||||
|
||||
lockKey :: Remote -> State -> Key -> (VerifiedCopy -> Annex r) -> Annex r
|
||||
lockKey r st key callback = do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue