From 961569153a9239dc9bcfe9c4428ed8c2840eabdf Mon Sep 17 00:00:00 2001 From: Karthik Thirumalasetti Date: Wed, 20 Dec 2023 08:48:15 +0530 Subject: [PATCH] Fix: Added error log on server side on GQL errors --- lib/server/helpers/execute-query-with-context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server/helpers/execute-query-with-context.ts b/lib/server/helpers/execute-query-with-context.ts index b0b290b0a..13366d9e0 100644 --- a/lib/server/helpers/execute-query-with-context.ts +++ b/lib/server/helpers/execute-query-with-context.ts @@ -97,7 +97,7 @@ export const ExecuteQueryWithContext = ( } return { ...resp.data, data }; } catch (err) { - console.error('ErrorIn:', apiName); + console.error('ErrorIn:', apiName, err); if ((err as AxiosError).response) { return (err as AxiosError).response?.data; }