[project @ 2004-05-27 16:13:59 by simonmar]
authorsimonmar <unknown>
Thu, 27 May 2004 16:13:59 +0000 (16:13 +0000)
committersimonmar <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

index ffd16e2..0879aa3 100644 (file)
@@ -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