Skip to content

Commit c893c34

Browse files
committed
add errors in test
1 parent 52244cc commit c893c34

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,13 @@ Test.prototype.deployAll = function(contractsConfig, cb) {
5959
callback(null, ABI);
6060
}
6161
], function(err, result) {
62+
if (err) {
63+
throw new Error(err);
64+
}
6265
self.web3.eth.getAccounts(function(err, accounts) {
66+
if (err) {
67+
throw new Error(err);
68+
}
6369
var web3 = self.web3;
6470
web3.eth.defaultAccount = accounts[0];
6571
// TODO: replace evals with separate process so it's isolated and with

0 commit comments

Comments
 (0)