summaryrefslogtreecommitdiff
path: root/src/GF/Devel/GFC.hs
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2008-04-17 12:50:51 +0000
committerkrasimir <krasimir@chalmers.se>2008-04-17 12:50:51 +0000
commit0ea2798b3cc9bf60e99e01089ea2eddba64a9cbf (patch)
tree0f94cbe1bdf621e9bdf5de892a0c00cb3c1b9298 /src/GF/Devel/GFC.hs
parent08f92cd180079125ce3d4826d1eeba1beb91ed46 (diff)
gf3 should not exit if there is a syntax error in the file
Diffstat (limited to 'src/GF/Devel/GFC.hs')
-rw-r--r--src/GF/Devel/GFC.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GF/Devel/GFC.hs b/src/GF/Devel/GFC.hs
index cbbad22ae..87af00b8b 100644
--- a/src/GF/Devel/GFC.hs
+++ b/src/GF/Devel/GFC.hs
@@ -18,7 +18,7 @@ mainGFC xx = do
case opts of
_ | oElem (iOpt "help") opts -> putStrLn usageMsg
_ | oElem (iOpt "-make") opts -> do
- gfcc <- compileToGFCC opts fs
+ gfcc <- appIOE (compileToGFCC opts fs) >>= err fail return
let gfccFile = targetNameGFCC opts (absname gfcc)
outputFile gfccFile (printGFCC gfcc)
mapM_ (alsoPrint opts gfcc) printOptions
@@ -32,7 +32,7 @@ mainGFC xx = do
mapM_ (alsoPrint opts gfcc) printOptions
_ -> do
- mapM_ (batchCompile opts) (map return fs)
+ appIOE (mapM_ (batchCompile opts) (map return fs)) >>= err fail return
putStrLn "Done."
targetName :: Options -> CId -> String