Commit 7384c05a authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Give more informative error when ghc-pkg dump fails.


Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent 1755976f
......@@ -234,7 +234,8 @@ dump hpi verbosity packagedb = do
output <- getProgramInvocationOutput verbosity
(dumpInvocation hpi verbosity packagedb)
`catchIO` \_ -> die $ programId (hcPkgProgram hpi) ++ " dump failed"
`catchIO` \e -> die $ programId (hcPkgProgram hpi) ++ " dump failed: "
++ displayException e
case parsePackages output of
Left ok -> return ok
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment