From 7565f2d60d8a3beb2dd70dd2540ebdc7c7e04b80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Thu, 4 Jan 2024 16:50:48 +0000 Subject: [PATCH] fix: Ensure original error is also logged --- api.planx.uk/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.planx.uk/helpers.ts b/api.planx.uk/helpers.ts index 6ee538e977..7e09603aa4 100644 --- a/api.planx.uk/helpers.ts +++ b/api.planx.uk/helpers.ts @@ -77,7 +77,7 @@ const insertFlow = async ( return { id }; } catch (error) { throw Error( - `User ${creatorId} failed to insert flow to teamId ${teamId}. Please check permissions.`, + `User ${creatorId} failed to insert flow to teamId ${teamId}. Please check permissions. Error: ${error}`, ); } };