removed try catch on socket creation

This commit is contained in:
Fabian Vogelsteller 2015-06-26 16:15:23 +02:00
parent 015e552ffc
commit bedacacf09
1 changed files with 4 additions and 10 deletions

View File

@ -33,17 +33,11 @@ var IpcProvider = function (path, net) {
net = net || require('net');
this.connection = net.connect({path: this.path});
try {
this.connection = net.connect({path: this.path});
} catch(error) {
throw errors.InvalidConnection(path);
}
// this.connection.on('error', function(e){
// throw errors.InvalidConnection(path);
// });
this.connection.on('error', function(e){
console.error('IPC Connection error', e);
});
// LISTEN FOR CONNECTION RESPONSES