From c9cf80e34c87dbfba8ac045eabf80b25428bbbaf Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Sat, 24 Sep 2022 06:14:30 -0500 Subject: [PATCH] Remove testing try/catch on email --- scripts/server/developer.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/server/developer.js b/scripts/server/developer.js index 3a87fc1f..72734180 100644 --- a/scripts/server/developer.js +++ b/scripts/server/developer.js @@ -450,13 +450,7 @@ function saveServerDataCommand(command, params, client) { // =========================================================================== async function testEmailCommand(command, params, client) { - try { - messagePlayerAlert(client, `Sending test email to ${params}`); - await sendEmail(params, "Player", "Test email", "Just testing the SMTP module for the server!"); - } catch (error) { - messagePlayerError(client, "The email could not be sent! Error: ${error}"); - return false; - } + sendEmail(params, "Player", "Test email", "Just testing the email system for the server!"); return true; }