projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b2dd6b
)
Improve error message of :set in ghci (ticket #4190).
author
Michal Terepeta
<michal.terepeta@gmail.com>
Tue, 30 Nov 2010 21:15:05 +0000
(21:15 +0000)
committer
Michal Terepeta
<michal.terepeta@gmail.com>
Tue, 30 Nov 2010 21:15:05 +0000
(21:15 +0000)
ghc/InteractiveUI.hs
patch
|
blob
|
history
diff --git
a/ghc/InteractiveUI.hs
b/ghc/InteractiveUI.hs
index
278470f
..
ad46afb
100644
(file)
--- a/
ghc/InteractiveUI.hs
+++ b/
ghc/InteractiveUI.hs
@@
-1562,7
+1562,9
@@
newDynFlags minus_opts = do
liftIO $ handleFlagWarnings dflags' warns
if (not (null leftovers))
- then ghcError $ errorsToGhcException leftovers
+ then ghcError . CmdLineError
+ $ "Some flags have not been recognized: "
+ ++ (concat . intersperse ", " $ map unLoc leftovers)
else return ()
new_pkgs <- setDynFlags dflags'