[Git][ghc/ghc][wip/js-staging] Driver: JS: tweak error message
doyougnu (@doyougnu)
gitlab at gitlab.haskell.org
Mon Oct 10 15:23:50 UTC 2022
doyougnu pushed to branch wip/js-staging at Glasgow Haskell Compiler / GHC
Commits:
2121147f by doyougnu at 2022-10-10T11:23:34-04:00
Driver: JS: tweak error message
- - - - -
1 changed file:
- compiler/GHC/Driver/CodeOutput.hs
Changes:
=====================================
compiler/GHC/Driver/CodeOutput.hs
=====================================
@@ -225,7 +225,7 @@ outputLlvm logger llvm_config dflags filenm cmm_stream = do
************************************************************************
-}
outputJS :: Logger -> LlvmConfigCache -> DynFlags -> FilePath -> Stream IO RawCmmGroup a -> IO a
-outputJS _ _ _ _ _ = pgmError $ "codeOutput: Hit JavaScript case. You should never reach here!"
+outputJS _ _ _ _ _ = pgmError $ "codeOutput: Hit JavaScript case. We should never reach here!"
++ "\nThe JS backend should shortcircuit to StgToJS after Stg."
++ "\nIf you reached this point then you've somehow made it to Cmm!"
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2121147f3275a3aaddad397dcf690bee71fe2043
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2121147f3275a3aaddad397dcf690bee71fe2043
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20221010/9e31ef12/attachment-0001.html>
More information about the ghc-commits
mailing list