stop sending emalis on error. Annoying as heck

This commit is contained in:
Eric Pelland 2022-10-24 11:12:38 -04:00
parent 4f2da73f00
commit 81e17e6997
1 changed files with 6 additions and 7 deletions

View File

@ -56,13 +56,12 @@ function search(accounts) {
function emailError(err, restart = false){ function emailError(err, restart = false){
console.log(err) 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 // subject: "Error detected",
subject: "Error detected", // text: err.toString(),
text: err.toString(), // }).catch((err)=>{writeToFile('/output/err.txt', err.toString())})
}).catch((err)=>{writeToFile('/output/err.txt', err.toString())})
if (restart) { if (restart) {
main(count, balancesFound) main(count, balancesFound)
} }