From 2c1c2d197428dfce208bd2df72a912a3d2a41dbf Mon Sep 17 00:00:00 2001 From: Pranav C Date: Mon, 13 Jun 2022 15:53:58 +0530 Subject: [PATCH] fix: exclude sensitive data related to server from SMTP test api Signed-off-by: Pranav C --- packages/nocodb/src/lib/plugins/smtp/SMTP.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/nocodb/src/lib/plugins/smtp/SMTP.ts b/packages/nocodb/src/lib/plugins/smtp/SMTP.ts index 9f566641f7..b2c6dd2129 100644 --- a/packages/nocodb/src/lib/plugins/smtp/SMTP.ts +++ b/packages/nocodb/src/lib/plugins/smtp/SMTP.ts @@ -47,7 +47,10 @@ export default class SMTP implements IEmailAdapter { } as any); return true; } catch (e) { - throw e; + console.log('SMTP test error :: ', e); + throw new Error( + 'SMTP test failed, please check server log for more details.' + ); } } }