avoid backtrace when rekey cntent verification fails
This commit is contained in:
parent
6f11c75d39
commit
48d8c175f8
1 changed files with 1 additions and 1 deletions
|
@ -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)"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue