summaryrefslogtreecommitdiff
path: root/src/compiler/GF/Compile/GetGrammar.hs
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2011-11-15 13:33:44 +0000
committerkr.angelov <kr.angelov@gmail.com>2011-11-15 13:33:44 +0000
commit61c16f2eb2a042152a2b04f709d0cefe6e5a14df (patch)
tree04fad20bcc0923f4a505a87a2ec9ef139394d868 /src/compiler/GF/Compile/GetGrammar.hs
parent8a7aa15c5717e3ab4ebe0e63459759be4863e07e (diff)
more structured format for errors and warnings from the compiler
Diffstat (limited to 'src/compiler/GF/Compile/GetGrammar.hs')
-rw-r--r--src/compiler/GF/Compile/GetGrammar.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/GF/Compile/GetGrammar.hs b/src/compiler/GF/Compile/GetGrammar.hs
index 914a19aac..65f98d29a 100644
--- a/src/compiler/GF/Compile/GetGrammar.hs
+++ b/src/compiler/GF/Compile/GetGrammar.hs
@@ -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)