From fd513eb4314f02e6556a0752fb913e0015e10b5a 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; }