summaryrefslogtreecommitdiff
path: root/Command/ContentLocation.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/ContentLocation.hs')
-rw-r--r--Command/ContentLocation.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/ContentLocation.hs b/Command/ContentLocation.hs
index 5b2acb6a5..202d76a21 100644
--- a/Command/ContentLocation.hs
+++ b/Command/ContentLocation.hs
@@ -19,7 +19,7 @@ cmd = noCommit $ noMessages $
run :: () -> String -> Annex Bool
run _ p = do
- let k = fromMaybe (error "bad key") $ file2key p
+ let k = fromMaybe (giveup "bad key") $ file2key p
maybe (return False) (\f -> liftIO (putStrLn f) >> return True)
=<< inAnnex' (pure True) Nothing check k
where