summaryrefslogtreecommitdiff
path: root/ghc/InteractiveUI.hs
diff options
context:
space:
mode:
Diffstat (limited to 'ghc/InteractiveUI.hs')
-rw-r--r--ghc/InteractiveUI.hs6
1 files changed, 1 insertions, 5 deletions
diff --git a/ghc/InteractiveUI.hs b/ghc/InteractiveUI.hs
index f3f812a22e..732646681f 100644
--- a/ghc/InteractiveUI.hs
+++ b/ghc/InteractiveUI.hs
@@ -1761,11 +1761,7 @@ checkAdd ii = do
m <- GHC.lookupModule modname pkgqual
when safe $ do
t <- GHC.isModuleTrusted m
- when (not t) $
- ghcError $ CmdLineError $
- "can't import " ++ moduleNameString modname
- ++ " as it isn't trusted."
-
+ when (not t) $ ghcError $ ProgramError $ ""
-- -----------------------------------------------------------------------------
-- Update the GHC API's view of the context