mirror of https://github.com/embarklabs/embark.git
handle error if no accounts are found
This commit is contained in:
parent
b01f18916e
commit
c7bd478dde
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue