From 4394b8a3bc01386c83624bb51122ce81078fbed8 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Mon, 22 Apr 2013 12:14:39 +0000 Subject: [PATCH] a bit more informative error message in GrammarToPGF --- src/compiler/GF/Compile/GrammarToPGF.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/GF/Compile/GrammarToPGF.hs b/src/compiler/GF/Compile/GrammarToPGF.hs index e10a2b13b..5ec7f9774 100644 --- a/src/compiler/GF/Compile/GrammarToPGF.hs +++ b/src/compiler/GF/Compile/GrammarToPGF.hs @@ -261,7 +261,7 @@ genCncFuns gr am cm seqs0 cdefs fid_cnt cnccats = mkFId (_,cat) fid0 = case Map.lookup (i2i cat) cnccats of Just (C.CncCat s e _) -> s+fid0 - Nothing -> error "GrammarToPGF.mkFId failed" + Nothing -> error ("GrammarToPGF.mkFId: missing category "++showIdent cat) mkCtxt lindefs (_,cat) = case Map.lookup (i2i cat) cnccats of