Skip to content

Commit

Permalink
use more helpful exception message when user has no cabal binary inst…
Browse files Browse the repository at this point in the history
…alled
  • Loading branch information
Paczesiowa committed Dec 16, 2013
1 parent fa146fa commit b904436
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SanityCheck.hs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ checkCabalInstall = do
cabalInstallPath <- liftIO $ which Nothing "cabal"
case cabalInstallPath of
Just _ -> return ()
Nothing -> throwError $ HsenvException "Couldn't find cabal binary (from cabal-install package) in your $PATH."
Nothing -> throwError $ HsenvException $ "Couldn't find cabal binary (from cabal-install package) in your $PATH." ++
"You could try using '--bootstrap-cabal' switch."

-- check if GHC tools (ghc, ghc-pkg) exist on PATH
-- skip the check if using GHC from a tarball
Expand Down

0 comments on commit b904436

Please sign in to comment.