summaryrefslogtreecommitdiff
path: root/Command/LockContent.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/LockContent.hs')
-rw-r--r--Command/LockContent.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Command/LockContent.hs b/Command/LockContent.hs
index de697c090..35342c529 100644
--- a/Command/LockContent.hs
+++ b/Command/LockContent.hs
@@ -32,7 +32,7 @@ start [ks] = do
then exitSuccess
else exitFailure
where
- k = fromMaybe (error "bad key") (file2key ks)
+ k = fromMaybe (giveup "bad key") (file2key ks)
locksuccess = ifM (inAnnex k)
( liftIO $ do
putStrLn contentLockedMarker
@@ -41,4 +41,4 @@ start [ks] = do
return True
, return False
)
-start _ = error "Specify exactly 1 key."
+start _ = giveup "Specify exactly 1 key."