mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-20 08:32:50 -06:00
a bit more informative error message in GrammarToPGF
This commit is contained in:
@@ -261,7 +261,7 @@ genCncFuns gr am cm seqs0 cdefs fid_cnt cnccats =
|
|||||||
mkFId (_,cat) fid0 =
|
mkFId (_,cat) fid0 =
|
||||||
case Map.lookup (i2i cat) cnccats of
|
case Map.lookup (i2i cat) cnccats of
|
||||||
Just (C.CncCat s e _) -> s+fid0
|
Just (C.CncCat s e _) -> s+fid0
|
||||||
Nothing -> error "GrammarToPGF.mkFId failed"
|
Nothing -> error ("GrammarToPGF.mkFId: missing category "++showIdent cat)
|
||||||
|
|
||||||
mkCtxt lindefs (_,cat) =
|
mkCtxt lindefs (_,cat) =
|
||||||
case Map.lookup (i2i cat) cnccats of
|
case Map.lookup (i2i cat) cnccats of
|
||||||
|
|||||||
Reference in New Issue
Block a user