Skip to content

Commit

Permalink
Fix: Added error log on server side on GQL errors
Browse files Browse the repository at this point in the history
  • Loading branch information
karthik1729 authored Dec 20, 2023
1 parent 802f309 commit 9615691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server/helpers/execute-query-with-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9615691

Please sign in to comment.