@@ -1264,8 +1264,17 @@ process fn (Execute tm)
1264 ir <- compile t tmpn (Just m)
1264 ir <- compile t tmpn (Just m)
1265 runIO $ generate t (fst (head (idris_imported ist))) ir
1265 runIO $ generate t (fst (head (idris_imported ist))) ir
1266 case idris_outputmode ist of
1266 case idris_outputmode ist of
1267− RawOutput h -> do runIO $ rawSystem progName []
1268+ do res <- runIO $ rawSystem progName []
1268− return ()
1270+ ExitSuccess -> return ()
1272+ ifail $ "Compiled program " ++
1274+ then "was killed by signal " ++
1276+ else "terminated with exit code " ++
1269 IdeMode n h -> runIO . hPutStrLn h $
1278 IdeMode n h -> runIO . hPutStrLn h $
1270 IdeMode.convSExp "run-program" tmpn n)
1279 IdeMode.convSExp "run-program" tmpn n)
1271 (\e -> getIState >>= iRenderError . flip pprintErr e)
1280 (\e -> getIState >>= iRenderError . flip pprintErr e)