Skip to content

Commit feb30b4

Browse files
committed
Restore exit code on error
1 parent d912d28 commit feb30b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Output.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ outputResults shortOutput results = do
2222
if shortOutput
2323
then putStrLn $ toS $ encode status
2424
else putStrLn $ toS $ encode out
25-
--when (any (/="success") status) $
26-
-- exitWith (ExitFailure 2)
25+
when (any (/="success") status) $
26+
exitWith (ExitFailure 2)
2727

2828
outputEitherResults:: Bool -> Either String [Object] -> IO ()
2929
outputEitherResults shortOutput eRes =

0 commit comments

Comments
 (0)