diff --git a/bin/client b/bin/client index 2a5888a..291bb7f 100755 --- a/bin/client +++ b/bin/client @@ -27,14 +27,13 @@ var opt = { lt_client(opt.port, opt, function(err, tunnel) { if (err) { - console.error(err); - return process.exit(1); + throw err; } console.log('your url is: %s', tunnel.url); tunnel.on('error', function(err) { - console.error(err); + throw err; }); });