mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
Include .gf file name in source parsing syntax error message.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user