Merge pull request #38 from LinusU/patch-1

re-throw client errors from bin/lt to let node handle it
This commit is contained in:
Roman Shtylman
2014-04-14 19:27:56 -04:00

View File

@@ -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;
});
});