[Git][ghc/ghc][master] hadrian: Improve error for wrong key/value errors.

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Sat Oct 22 11:42:19 UTC 2022



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
1937016b by Andreas Klebinger at 2022-10-22T07:42:06-04:00
hadrian: Improve error for wrong key/value errors.

- - - - -


1 changed file:

- hadrian/src/Settings.hs


Changes:

=====================================
hadrian/src/Settings.hs
=====================================
@@ -74,7 +74,8 @@ flavour = do
         (settingErrs, tweak) = applySettings kvs
 
     when (not $ null settingErrs) $ fail
-      $ "failed to apply key-value settings:" ++ unlines (map (" - " ++) settingErrs)
+      $ "failed to apply key-value settings:\n\t" ++ unlines (map (" - " ++) settingErrs) ++
+        "\t   Entries should look something like \"stage1.containers.ghc.hs.opts += -Werror\""
 
     case parseFlavour flavours flavourTransformers flavourName of
       Left err -> fail err



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1937016b7834338eef12be19caefc8e37a90cd29

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1937016b7834338eef12be19caefc8e37a90cd29
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/20221022/78fb06dd/attachment.html>


More information about the ghc-commits mailing list