Skip to content

Commit c7bd478

Browse files
committed
handle error if no accounts are found
1 parent b01f189 commit c7bd478

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ var Embark = {
184184
}
185185

186186
web3.eth.getAccounts(function(err, accounts) {
187+
if (err) {
188+
return callback(new Error(err));
189+
}
187190
web3.eth.defaultAccount = accounts[0];
188191

189192
var deploy = new Deploy({

0 commit comments

Comments
 (0)