Skip to content

Commit

Permalink
Fix reporting exit code 143 as an error running Sauce Connect
Browse files Browse the repository at this point in the history
  • Loading branch information
csnover committed Jul 24, 2013
1 parent 89e3b89 commit 2049501
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/sauce-connect-launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ function run(options, callback) {
});

child.on("exit", function (code, signal) {
// Java exits with code 143 on SIGTERM; this is not an error, it comes from child.close
if (code === 143) {
return;
}

var message = "Closing Sauce Connect Tunnel";
if (code > 0) {
message = "Could not start Sauce Connect. Exit code " + code + " signal: " + signal;
Expand Down

0 comments on commit 2049501

Please sign in to comment.