summaryrefslogtreecommitdiff
path: root/Command
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-07-08 16:47:34 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-07-08 16:47:34 -0400
commitf3d5639f40e415afbf73fcdbfe9f529c8f456cfe (patch)
treef814f49ad59b6efc97ed59dc494e4b8b8de7758c /Command
parent4bf421766f6489481aaf9652f15c1250dbd3a603 (diff)
dropunused, addunused: Complain when asked to operate on a number that does not correspond to any unused key.
Diffstat (limited to 'Command')
-rw-r--r--Command/Unused.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/Unused.hs b/Command/Unused.hs
index 989faa9a3..fd6cf6575 100644
--- a/Command/Unused.hs
+++ b/Command/Unused.hs
@@ -351,7 +351,7 @@ startUnused message unused badunused tmpunused maps n = search
, (unusedTmpMap maps, tmpunused)
]
where
- search [] = stop
+ search [] = error $ show n ++ " not valid (run git annex unused for list)"
search ((m, a):rest) =
case M.lookup n m of
Nothing -> search rest