diff --git a/index.js b/index.js index f4a44c1..75a24d0 100644 --- a/index.js +++ b/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" ', to: process.env.EMAIL_TO, // Test email address