diff options
author | Joey Hess <joey@kitenet.net> | 2013-07-08 16:47:34 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-07-08 16:47:34 -0400 |
commit | f3d5639f40e415afbf73fcdbfe9f529c8f456cfe (patch) | |
tree | f814f49ad59b6efc97ed59dc494e4b8b8de7758c /Command | |
parent | 4bf421766f6489481aaf9652f15c1250dbd3a603 (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.hs | 2 |
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 |