Skip to content

Commit

Permalink
Improve error message for when GHC is not found.
Browse files Browse the repository at this point in the history
  • Loading branch information
christiaanb committed Dec 21, 2015
1 parent b123fda commit 2eff685
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clash-ghc/src-ghc/CLaSH/GHC/LoadModules.hs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ ghcLibDir = do
127 -> Panic.pgmError noGHC
i' -> Panic.pgmError $ "Calling GHC failed with error code: " ++ show i'
where
noGHC = "Could not invoke ghc-" ++ TOOL_VERSION_ghc ++ ". Make sure its location is in your PATH variable."
noGHC = "CLaSH needs the GHC compiler it was build with, ghc-" ++ TOOL_VERSION_ghc ++
", but it was not found. Make sure its location is in your PATH variable."

getProcessOutput :: String -> IO (Maybe String, ExitCode)
getProcessOutput command =
Expand Down

0 comments on commit 2eff685

Please sign in to comment.