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