[commit: ghc] wip/prettyprinter: Debugging ghc-pkg (092ccef)
git at git.haskell.org
git at git.haskell.org
Wed Aug 16 22:47:53 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/prettyprinter
Link : http://ghc.haskell.org/trac/ghc/changeset/092ccefae9cb992271b424519616969f06b8d004/ghc
>---------------------------------------------------------------
commit 092ccefae9cb992271b424519616969f06b8d004
Author: Ben Gamari <ben at smart-cactus.org>
Date: Fri Jul 21 00:11:14 2017 -0400
Debugging ghc-pkg
>---------------------------------------------------------------
092ccefae9cb992271b424519616969f06b8d004
libraries/ghc-boot/GHC/PackageDb.hs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libraries/ghc-boot/GHC/PackageDb.hs b/libraries/ghc-boot/GHC/PackageDb.hs
index bf83d25..f1ccf16 100644
--- a/libraries/ghc-boot/GHC/PackageDb.hs
+++ b/libraries/ghc-boot/GHC/PackageDb.hs
@@ -352,7 +352,7 @@ getHeader :: Get (Word32, Word32)
getHeader = do
magic <- getByteString (BS.length headerMagic)
when (magic /= headerMagic) $
- fail "not a ghc-pkg db file, wrong file magic number"
+ fail $ "not a ghc-pkg db file, wrong file magic number (saw "++show magic++", expected "++show headerMagic++")"
majorVersion <- get :: Get Word32
-- The major version is for incompatible changes
More information about the ghc-commits
mailing list