Skip to content

Commit

Permalink
coerce null exit values into 0
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-mann committed Jul 31, 2016
1 parent 0eb935f commit e97da1b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/cypress.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ errors = require("./errors")
appData = require("./util/app_data")
argsUtil = require("./util/args")

exit = (code) ->
exit = (code = 0) ->
## TODO: we shouldn't have to do this
## but cannot figure out how null is
## being passed into exit
process.exit(code)

exit0 = ->
Expand Down

0 comments on commit e97da1b

Please sign in to comment.