show PATH on failure
This commit is contained in:
parent
de023c09bb
commit
614986b19a
1 changed files with 3 additions and 1 deletions
|
@ -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 ()
|
||||
|
|
Loading…
Reference in a new issue