mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-29 06:22:51 -06:00
more structured format for errors and warnings from the compiler
This commit is contained in:
@@ -38,7 +38,7 @@ getSourceModule opts file0 = ioe $
|
||||
case runP pModDef content of
|
||||
Left (Pn l c,msg) -> do file <- writeTemp tmp
|
||||
let location = file++":"++show l++":"++show c
|
||||
return (Bad (location++": "++msg))
|
||||
return (Bad (location++":\n "++msg))
|
||||
Right (i,mi) -> do removeTemp tmp
|
||||
return (Ok (i,mi{mflags=mflags mi `addOptions` opts, msrc=file0}))
|
||||
`catch` (return . Bad . show)
|
||||
|
||||
Reference in New Issue
Block a user