Skip to content

Commit

Permalink
Merge pull request #40 from kloudlite/fix/added-errorlog-serverside
Browse files Browse the repository at this point in the history
Fix: Added error log on server side on GQL errors
  • Loading branch information
karthik1729 authored Dec 20, 2023
2 parents 802f309 + 9615691 commit fa92be5
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 fa92be5

Please sign in to comment.