From bedacacf097646c7fd2307900e6d891b7604aff0 Mon Sep 17 00:00:00 2001 From: Fabian Vogelsteller Date: Fri, 26 Jun 2015 16:15:23 +0200 Subject: [PATCH] removed try catch on socket creation --- lib/web3/ipcprovider.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/lib/web3/ipcprovider.js b/lib/web3/ipcprovider.js index eed89f4..c38062e 100644 --- a/lib/web3/ipcprovider.js +++ b/lib/web3/ipcprovider.js @@ -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