add errors in test

This commit is contained in:
Iuri Matias 2016-10-30 21:35:08 -04:00
parent 52244cca8e
commit c893c34fd2
1 changed files with 6 additions and 0 deletions

View File

@ -59,7 +59,13 @@ Test.prototype.deployAll = function(contractsConfig, cb) {
callback(null, ABI); callback(null, ABI);
} }
], function(err, result) { ], function(err, result) {
if (err) {
throw new Error(err);
}
self.web3.eth.getAccounts(function(err, accounts) { self.web3.eth.getAccounts(function(err, accounts) {
if (err) {
throw new Error(err);
}
var web3 = self.web3; var web3 = self.web3;
web3.eth.defaultAccount = accounts[0]; web3.eth.defaultAccount = accounts[0];
// TODO: replace evals with separate process so it's isolated and with // TODO: replace evals with separate process so it's isolated and with