Skip to content

Commit

Permalink
🚀 Added error log for the api call to debug in deployments (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdheshnayak authored Dec 19, 2023
1 parent 813f012 commit 1ea3021
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/server/helpers/execute-query-with-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export const ExecuteQueryWithContext = (
}
return { ...resp.data, data };
} catch (err) {
console.error('ErrorIn:', apiName);
if ((err as AxiosError).response) {
return (err as AxiosError).response?.data;
}
Expand Down

0 comments on commit 1ea3021

Please sign in to comment.