[project @ 2005-12-19 11:00:59 by simonpj]
authorsimonpj <unknown>
Mon, 19 Dec 2005 11:00:59 +0000 (11:00 +0000)
committersimonpj <unknown>
Mon, 19 Dec 2005 11:00:59 +0000 (11:00 +0000)
Marginally improve the error message on a failure in DsMeta

ghc/compiler/deSugar/DsMeta.hs

index 40c0ce1..e5e079e 100644 (file)
@@ -875,7 +875,7 @@ lookupBinder n
   = do { mb_val <- dsLookupMetaEnv n;
         case mb_val of
            Just (Bound x) -> return (coreVar x)
-           other          -> pprPanic "Failed binder lookup:" (ppr n) }
+           other          -> pprPanic "DsMeta: failed binder lookup when desugaring a TH bracket:" (ppr n) }
 
 -- Look up a name that is either locally bound or a global name
 --