From 5e711e7abc33110e0a15a2eceff32946c1a5869d Mon Sep 17 00:00:00 2001 From: bjorn Date: Thu, 30 Oct 2008 10:49:23 +0000 Subject: [PATCH] Include .gf file name in source parsing syntax error message. --- src/GF/Compile/GetGrammar.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GF/Compile/GetGrammar.hs b/src/GF/Compile/GetGrammar.hs index 85f017459..0972c4b3a 100644 --- a/src/GF/Compile/GetGrammar.hs +++ b/src/GF/Compile/GetGrammar.hs @@ -41,7 +41,7 @@ getSourceModule opts file0 = do file <- foldM runPreprocessor file0 (flag optPreprocessors opts) string <- readFileIOE file let tokens = myLexer string - mo1 <- ioeErr $ pModDef tokens + mo1 <- ioeErr $ errIn file0 $ pModDef tokens mo2 <- ioeErr $ transModDef mo1 return $ addOptionsToModule opts mo2