From 4f2da73f00f268b31d18a118b929f37bff5e644f Mon Sep 17 00:00:00 2001 From: Eric Pelland Date: Sat, 22 Oct 2022 08:06:54 -0400 Subject: [PATCH] restart after error --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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