Commit c4a9630b c4a9630ba85a6b04aea2eeebca8d04900d3a7f0a by Vladimir Chizhov

Removed extra error from ruby on incorrect exiting

When phantomjs process was interrupted (i.e. ith ^C) it's exitstatus is
nil, so `exit` function prints useless error message about nil to int
conversion.

Now explicitly exit with 1, which is a default ruby exit behaviour and
stays in sync with a python bin script.
1 parent f04ed9f6
...@@ -59,4 +59,4 @@ if system(CASPER_COMMAND.join(" ")).nil? ...@@ -59,4 +59,4 @@ if system(CASPER_COMMAND.join(" ")).nil?
59 puts "Fatal: Did you install phantomjs?" 59 puts "Fatal: Did you install phantomjs?"
60 end 60 end
61 61
62 exit $?.exitstatus 62 exit $?.exitstatus || 1
......