X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=compiler%2Fmain%2FGHC.hs;h=f5320613ff753262e5b92a1b796dc056856f414e;hb=d529d596a1256bb48bda45ec343631c879c8d56d;hp=64042e2c31ec129d6aca0cd5ceccedc42271aba7;hpb=8b6c1605e75a2482892995c6d0529911796e89dd;p=ghc-hetmet.git diff --git a/compiler/main/GHC.hs b/compiler/main/GHC.hs index 64042e2..f532061 100644 --- a/compiler/main/GHC.hs +++ b/compiler/main/GHC.hs @@ -334,6 +334,7 @@ defaultErrorHandler dflags inner = Just (ioe :: IOException) -> fatalErrorMsg dflags (text (show ioe)) _ -> case fromException exception of + Just UserInterrupt -> exitWith (ExitFailure 1) Just StackOverflow -> fatalErrorMsg dflags (text "stack overflow: use +RTS -K to increase it") _ -> case fromException exception of @@ -350,7 +351,6 @@ defaultErrorHandler dflags inner = hFlush stdout case ge of PhaseFailed _ code -> exitWith code - Interrupted -> exitWith (ExitFailure 1) Signal _ -> exitWith (ExitFailure 1) _ -> do fatalErrorMsg dflags (text (show ge)) exitWith (ExitFailure 1)