propigate error

This commit is contained in:
Joey Hess 2016-07-20 13:44:33 -04:00
parent 857d3c3180
commit 4236dc83a8
Failed to extract signature

View file

@ -204,7 +204,8 @@ withKeyOptions' ko auto mkkeyaction fallbackaction params = do
forM_ l $ \i ->
maybe noop (\k -> keyaction (return [k]))
=<< catKey (LsTree.sha i)
liftIO $ void cleanup
unlessM (liftIO cleanup) $
error ("git ls-tree " ++ Git.fromRef b ++ " failed")
prepFiltered :: (FilePath -> CommandStart) -> Annex [FilePath] -> Annex [CommandStart]
prepFiltered a fs = do