avoid backtrace when rekey cntent verification fails

This commit is contained in:
Joey Hess 2016-11-22 01:16:18 -04:00
parent 6f11c75d39
commit 48d8c175f8
No known key found for this signature in database
GPG key ID: C910D9222512E3C7

View file

@ -44,7 +44,7 @@ perform :: FilePath -> Key -> Key -> CommandPerform
perform file oldkey newkey = do
ifM (inAnnex oldkey)
( unlessM (linkKey file oldkey newkey) $
error "failed"
giveup "failed"
, unlessM (Annex.getState Annex.force) $
giveup $ file ++ " is not available (use --force to override)"
)