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)
|
main(count, balancesFound)
|
||||||
}).catch(emailError, true)
|
}).catch((err)=> { emailError(err, true) })
|
||||||
}
|
}
|
||||||
|
|
||||||
function emailError(err, restart = false){
|
function emailError(err, restart = false){
|
||||||
|
console.log(err)
|
||||||
|
console.log(restart)
|
||||||
transporter.sendMail({
|
transporter.sendMail({
|
||||||
from: '"Random Ethereum Scanner" <foo@example.com>',
|
from: '"Random Ethereum Scanner" <foo@example.com>',
|
||||||
to: process.env.EMAIL_TO, // Test email address
|
to: process.env.EMAIL_TO, // Test email address
|
||||||
|
|
Loading…
Reference in New Issue