summaryrefslogtreecommitdiff
path: root/Command/ReadPresentKey.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/ReadPresentKey.hs')
-rw-r--r--Command/ReadPresentKey.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Command/ReadPresentKey.hs b/Command/ReadPresentKey.hs
index 1eba2cc12..f73e22af4 100644
--- a/Command/ReadPresentKey.hs
+++ b/Command/ReadPresentKey.hs
@@ -27,5 +27,5 @@ start (ks:us:[]) = do
then liftIO exitSuccess
else liftIO exitFailure
where
- k = fromMaybe (error "bad key") (file2key ks)
-start _ = error "Wrong number of parameters"
+ k = fromMaybe (giveup "bad key") (file2key ks)
+start _ = giveup "Wrong number of parameters"