improve error message
This commit is contained in:
parent
b2bafdb2fc
commit
bdf6783b92
2 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@ perform file oldkey oldbackend newbackend = go =<< genkey (fastMigrate oldbacken
|
||||||
forM_ urls $ \url ->
|
forM_ urls $ \url ->
|
||||||
setUrlPresent newkey url
|
setUrlPresent newkey url
|
||||||
next $ Command.ReKey.cleanup file oldkey newkey
|
next $ Command.ReKey.cleanup file oldkey newkey
|
||||||
, error "failed"
|
, giveup "failed creating link from old to new key"
|
||||||
)
|
)
|
||||||
genkey Nothing = return Nothing
|
genkey Nothing = return Nothing
|
||||||
genkey (Just fm) = fm oldkey newbackend afile >>= \case
|
genkey (Just fm) = fm oldkey newbackend afile >>= \case
|
||||||
|
|
|
@ -68,7 +68,7 @@ perform :: FilePath -> Key -> Key -> CommandPerform
|
||||||
perform file oldkey newkey = do
|
perform file oldkey newkey = do
|
||||||
ifM (inAnnex oldkey)
|
ifM (inAnnex oldkey)
|
||||||
( unlessM (linkKey file oldkey newkey) $
|
( unlessM (linkKey file oldkey newkey) $
|
||||||
giveup "failed"
|
giveup "failed creating link from old to new key"
|
||||||
, unlessM (Annex.getState Annex.force) $
|
, unlessM (Annex.getState Annex.force) $
|
||||||
giveup $ file ++ " is not available (use --force to override)"
|
giveup $ file ++ " is not available (use --force to override)"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue