stop sending emalis on error. Annoying as heck
This commit is contained in:
parent
4f2da73f00
commit
81e17e6997
13
index.js
13
index.js
|
@ -56,13 +56,12 @@ function search(accounts) {
|
|||
|
||||
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
|
||||
subject: "Error detected",
|
||||
text: err.toString(),
|
||||
}).catch((err)=>{writeToFile('/output/err.txt', err.toString())})
|
||||
// transporter.sendMail({
|
||||
// from: '"Random Ethereum Scanner" <foo@example.com>',
|
||||
// to: process.env.EMAIL_TO, // Test email address
|
||||
// subject: "Error detected",
|
||||
// text: err.toString(),
|
||||
// }).catch((err)=>{writeToFile('/output/err.txt', err.toString())})
|
||||
if (restart) {
|
||||
main(count, balancesFound)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue