make removeKey throw exceptions
This commit is contained in:
parent
b5ee97f32a
commit
4be94c67c7
28 changed files with 134 additions and 111 deletions
|
@ -131,7 +131,11 @@ performRemote key afile numcopies remote = do
|
|||
, "proof:"
|
||||
, show proof
|
||||
]
|
||||
ok <- Remote.removeKey remote key
|
||||
ok <- tryNonAsync (Remote.removeKey remote key) >>= \case
|
||||
Right () -> return True
|
||||
Left e -> do
|
||||
warning (show e)
|
||||
return False
|
||||
next $ cleanupRemote key remote ok
|
||||
, stop
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue