Merge pull request #940 from haroldl/master
Improve error message when "yesod devel" complains about the GHC version...
This commit is contained in:
commit
11fa46d8ba
@ -321,7 +321,7 @@ removeFileIfExists file = removeFile file `Ex.catch` handler
|
|||||||
mkRebuild :: String -> FilePath -> DevelOpts -> (FilePath, FilePath) -> IO (IO Bool)
|
mkRebuild :: String -> FilePath -> DevelOpts -> (FilePath, FilePath) -> IO (IO Bool)
|
||||||
mkRebuild ghcVer cabalFile opts (ldPath, arPath)
|
mkRebuild ghcVer cabalFile opts (ldPath, arPath)
|
||||||
| GHC.cProjectVersion /= ghcVer =
|
| GHC.cProjectVersion /= ghcVer =
|
||||||
failWith "Yesod has been compiled with a different GHC version, please reinstall"
|
failWith "Yesod has been compiled with a different GHC version, please reinstall yesod-bin"
|
||||||
| forceCabal opts = return (rebuildCabal opts)
|
| forceCabal opts = return (rebuildCabal opts)
|
||||||
| otherwise =
|
| otherwise =
|
||||||
return $ do
|
return $ do
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user