From c893c34fd2da9e775ce336a69fe24a3294037b56 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sun, 30 Oct 2016 21:35:08 -0400 Subject: [PATCH] add errors in test --- lib/test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/test.js b/lib/test.js index 9667ae07..87d8a0b6 100644 --- a/lib/test.js +++ b/lib/test.js @@ -59,7 +59,13 @@ Test.prototype.deployAll = function(contractsConfig, cb) { callback(null, ABI); } ], function(err, result) { + if (err) { + throw new Error(err); + } self.web3.eth.getAccounts(function(err, accounts) { + if (err) { + throw new Error(err); + } var web3 = self.web3; web3.eth.defaultAccount = accounts[0]; // TODO: replace evals with separate process so it's isolated and with