Permalink
Browse files

Make sure connect logs in runner

  • Loading branch information...
1 parent 8cac969 commit 2e6af631eb47dcc0e288bb113d5adcad13a30e0f @nikhilm committed Nov 30, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 run.js
View
9 run.js
@@ -11,8 +11,13 @@ if (process.argv.length >= 4) {
var arg = process.argv[3].split(':');
if (arg[0])
node.connect(arg[0], parseInt(arg[1]), function(err) {
- console.log(err);
- process.exit(1);
+ if (err) {
+ console.log(err);
+ process.exit(1);
+ }
+ else {
+ console.log("Successfully connected to", process.argv[3]);
+ }
});
}

0 comments on commit 2e6af63

Please sign in to comment.