Skip to content

Commit

Permalink
Merge pull request #30 from aviaviavi/bug/exit-code
Browse files Browse the repository at this point in the history
error code 1 when file not found
  • Loading branch information
aviaviavi authored Jul 23, 2018
2 parents 04676fd + 02b431f commit 2387caf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ runFile path verbosityLevel regexp = do
exitWith (ExitFailure 1)
else putStrLn . T.unpack $ makeGreen "All tests passed!"
Left message ->
putStrLn . T.unpack . makeRed . T.pack $
"Couldn't read input json or yaml file: " <> message
(putStrLn . T.unpack . makeRed . T.pack $
"Couldn't read input json or yaml file: " <> message) >> exitWith (ExitFailure 1)

toLogLevel :: Verbosity -> LogLevel
toLogLevel v = toEnum $ fromEnum v
Expand Down
4 changes: 2 additions & 2 deletions curl-runnings.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
--
-- see: https://github.com/sol/hpack
--
-- hash: 8ef22999ea1898841e719329745691890631e19500f94c71ae498066d285f192
-- hash: dbc99d38e085ce41c2474642fb43e31b866dd4b2a864e22a26b6f4c12b7a4672

name: curl-runnings
version: 0.8.4
version: 0.8.5
synopsis: A framework for declaratively writing curl based API tests
description: Please see the README on Github at <https://github.com/aviaviavi/curl-runnings#readme>
category: Testing
Expand Down
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: curl-runnings
version: 0.8.4
version: 0.8.5
github: aviaviavi/curl-runnings
license: MIT
author: Avi Press
Expand Down

0 comments on commit 2387caf

Please sign in to comment.