Merge pull request #1219 from bermanjosh/yesod-keter-no-stack
error handling when checking for stack binary
This commit is contained in:
commit
0761cd7087
@ -79,8 +79,8 @@ keter cabal noBuild noCopyTo buildArgs = do
|
|||||||
|
|
||||||
unless noBuild $ do
|
unless noBuild $ do
|
||||||
stackQueryRunSuccess <- do
|
stackQueryRunSuccess <- do
|
||||||
(ec,_,_) <- readProcessWithExitCode "stack" ["query"] ""
|
eres <- try $ readProcessWithExitCode "stack" ["query"] "" :: IO (Either IOException (ExitCode, String, String))
|
||||||
return (ec == ExitSuccess)
|
return $ either (\_ -> False) (\(ec, _, _) -> (ec == ExitSuccess)) eres
|
||||||
|
|
||||||
let inStackExec = isJust $ lookup "STACK_EXE" env'
|
let inStackExec = isJust $ lookup "STACK_EXE" env'
|
||||||
mStackYaml = lookup "STACK_YAML" env'
|
mStackYaml = lookup "STACK_YAML" env'
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
name: yesod-bin
|
name: yesod-bin
|
||||||
version: 1.4.18
|
version: 1.4.18.1
|
||||||
license: MIT
|
license: MIT
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Michael Snoyman <michael@snoyman.com>
|
author: Michael Snoyman <michael@snoyman.com>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user