Remove unnecessary catch over lookupEnv

This commit is contained in:
jneira 2019-11-14 10:38:18 +01:00
parent 0f72de0c98
commit 2140a5a9ff

View File

@ -105,10 +105,7 @@ stackBuildFailMsg =
withoutStackCachedBinaries :: Action a -> Action a
withoutStackCachedBinaries action = do
let getEnvErrorHandler e | isDoesNotExistError e = return Nothing
| otherwise = throwIO e
mbPath <- liftIO (lookupEnv "PATH" `catch` getEnvErrorHandler)
mbPath <- liftIO (lookupEnv "PATH")
case (mbPath, isRunFromStack) of