From b2fc69447d18a9e7a1f9e39b82a0eb4416e58ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Fri, 17 Nov 2023 10:42:09 +0000 Subject: [PATCH] chore: Improve email trigger error logging (#2436) --- api.planx.uk/modules/saveAndReturn/service/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.planx.uk/modules/saveAndReturn/service/utils.ts b/api.planx.uk/modules/saveAndReturn/service/utils.ts index f6665b8d80..aa61ee7658 100644 --- a/api.planx.uk/modules/saveAndReturn/service/utils.ts +++ b/api.planx.uk/modules/saveAndReturn/service/utils.ts @@ -265,7 +265,7 @@ const setupEmailEventTriggers = async (sessionId: string) => { return hasUserSaved; } catch (error) { throw new Error( - `Error setting up email notifications for session ${sessionId}`, + `Error setting up email notifications for session ${sessionId}. Error: ${error}`, ); } };