mirror of
https://github.com/bitinflow/localtunnel.git
synced 2026-03-13 13:35:54 +00:00
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:
@@ -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;
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user