restart after error
This commit is contained in:
parent
136aef6465
commit
4f2da73f00
4
index.js
4
index.js
|
@ -51,10 +51,12 @@ function search(accounts) {
|
|||
}
|
||||
}
|
||||
main(count, balancesFound)
|
||||
}).catch(emailError, true)
|
||||
}).catch((err)=> { emailError(err, true) })
|
||||
}
|
||||
|
||||
function emailError(err, restart = false){
|
||||
console.log(err)
|
||||
console.log(restart)
|
||||
transporter.sendMail({
|
||||
from: '"Random Ethereum Scanner" <foo@example.com>',
|
||||
to: process.env.EMAIL_TO, // Test email address
|
||||
|
|
Loading…
Reference in New Issue