We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbb8174 commit e93a03aCopy full SHA for e93a03a
src/Stack/Setup.hs
@@ -841,7 +841,7 @@ buildGhcFromSource getSetupInfo' installed (CompilerRepository url) commitId fla
841
| otherwise = hadrianScriptsPosix
842
843
foundHadrianPaths <- filterM doesFileExist $ (cwd </>) <$> hadrianScripts
844
- let hadrianPath = fromMaybe (error "No Hadrian build script found") $ listToMaybe foundHadrianPaths
+ hadrianPath <- maybe (throwString "No Hadrian build script found") pure $ listToMaybe foundHadrianPaths
845
846
logSticky $ "Building GHC from source with `"
847
<> RIO.display flavour
0 commit comments