From 4d99378a251f69f90db5d246c7f74b3410d01e4a Mon Sep 17 00:00:00 2001 From: Leandro Facchinetti Date: Tue, 31 Mar 2020 18:16:49 -0400 Subject: [PATCH] Fix error messages --- src/index.tsx | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 4ddea70..794a0d9 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -40,12 +40,9 @@ export const webServer = express() ); })().catch(error => { console.error( - `Error creating feed: ${JSON.stringify( - { name, identifier, error }, - null, - 2 - )}` + `Error creating feed: ${JSON.stringify({ name, identifier }, null, 2)}` ); + console.error(error); next(error); }); }) @@ -107,12 +104,9 @@ export const emailServer = new SMTPServer({ callback(); })().catch(error => { console.error( - `Error receiving email: ${JSON.stringify( - { session, email, error }, - null, - 2 - )}` + `Error receiving email: ${JSON.stringify({ session, email }, null, 2)}` ); + console.error(error); stream.resume(); callback(new Error("Failed to receive message. Please try again.")); });