mirror of
https://github.com/haskell/haskell-ide-engine.git
synced 2024-09-11 11:05:30 +03:00
Catch all IOException's in the $PATH hack
This commit is contained in:
parent
98acf41752
commit
3224d7005f
@ -105,8 +105,8 @@ stackBuildFailMsg =
|
||||
withoutStackCachedBinaries :: Action a -> Action a
|
||||
withoutStackCachedBinaries action = do
|
||||
|
||||
let getEnvErrorHandler e | isDoesNotExistError e = return Nothing
|
||||
| otherwise = throwIO e
|
||||
let getEnvErrorHandler :: IOException -> IO (Maybe String)
|
||||
getEnvErrorHandler _ = return Nothing
|
||||
|
||||
mbPath <- liftIO (lookupEnv "PATH" `catch` getEnvErrorHandler)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user