handle error if no accounts are found

This commit is contained in:
Iuri Matias 2016-10-30 21:56:19 -04:00
parent b01f18916e
commit c7bd478dde
1 changed files with 3 additions and 0 deletions

View File

@ -184,6 +184,9 @@ var Embark = {
}
web3.eth.getAccounts(function(err, accounts) {
if (err) {
return callback(new Error(err));
}
web3.eth.defaultAccount = accounts[0];
var deploy = new Deploy({