show PATH on failure

This commit is contained in:
Joey Hess 2014-01-07 12:59:26 -04:00
parent de023c09bb
commit 614986b19a

View file

@ -352,7 +352,9 @@ startExternal externaltype = liftIO $ do
checkearlytermination Nothing = noop
checkearlytermination (Just exitcode) = ifM (inPath cmd)
( error $ unwords [ "failed to run", cmd, "(" ++ show exitcode ++ ")" ]
, error $ cmd ++ " is not installed in PATH"
, do
path <- intercalate ":" <$> getSearchPath
error $ cmd ++ " is not installed in PATH (" ++ path ++ ")"
)
stopExternal :: External -> Annex ()