mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 14:34:40 +00:00
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) {
|
web3.eth.getAccounts(function(err, accounts) {
|
||||||
|
if (err) {
|
||||||
|
return callback(new Error(err));
|
||||||
|
}
|
||||||
web3.eth.defaultAccount = accounts[0];
|
web3.eth.defaultAccount = accounts[0];
|
||||||
|
|
||||||
var deploy = new Deploy({
|
var deploy = new Deploy({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user