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:
e663fcf
)
[project @ 2004-05-27 16:13:59 by simonmar]
author
simonmar
<unknown>
Thu, 27 May 2004 16:13:59 +0000
(16:13 +0000)
committer
simonmar
<unknown>
Thu, 27 May 2004 16:13:59 +0000
(16:13 +0000)
Change the 'can't load package' message from a panic to an ordinary
error.
ghc/compiler/ghci/Linker.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/ghci/Linker.lhs
b/ghc/compiler/ghci/Linker.lhs
index
ffd16e2
..
0879aa3
100644
(file)
--- a/
ghc/compiler/ghci/Linker.lhs
+++ b/
ghc/compiler/ghci/Linker.lhs
@@
-790,7
+790,7
@@
linkPackage dflags pkg
maybePutStr dflags "linking ... "
ok <- resolveObjs
if succeeded ok then maybePutStrLn dflags "done."
- else panic ("can't load package `" ++ name pkg ++ "'")
+ else throwDyn (InstallationError ("unable to load package `" ++ name pkg ++ "'"))
load_dyn dirs dll = do r <- loadDynamic dirs dll
case r of