diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2016-01-13 03:06:21 +0100 |
---|---|---|
committer | Daniel Gröber <dxld@darkboxed.org> | 2016-01-14 19:19:05 +0100 |
commit | c1b8fa2c397355076323c97c976b7d2cfd46504c (patch) | |
tree | 73f7391af80cdf47ea94f32d457fd28a2ef288a4 /CabalHelper/Compile.hs | |
parent | 474c6e9ab033d605ec753ecb9041e3953778002f (diff) |
Don't fail when cabal sandbox pkgdb doesn't exist
Diffstat (limited to 'CabalHelper/Compile.hs')
-rw-r--r-- | CabalHelper/Compile.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CabalHelper/Compile.hs b/CabalHelper/Compile.hs index 54771b1..59bb48c 100644 --- a/CabalHelper/Compile.hs +++ b/CabalHelper/Compile.hs @@ -97,7 +97,8 @@ compileHelper opts cabalVer projdir distdir = withHelperSources $ \chdir -> do compileSandbox :: FilePath -> MaybeT IO (Either ExitCode FilePath) compileSandbox chdir = do sandbox <- MaybeT $ getSandboxPkgDb projdir (display buildPlatform) =<< ghcVersion opts - ver <- MaybeT $ find (== cabalVer) <$> listCabalVersions' opts (Just sandbox) + ver <- MaybeT $ logSomeError opts "compileSandbox" $ + find (== cabalVer) <$> listCabalVersions' opts (Just sandbox) vLog opts $ logMsg ++ "sandbox package-db" liftIO $ compileWithPkg chdir (Just sandbox) ver |