Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Manancode committed Sep 14, 2024
1 parent 1e01070 commit 1ff20cd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/client/src/API.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ const _handleResponse = ({ data }: AxiosResponse) => data;

const _handleError = (error: any) => {
debug(error);
if (axios.isAxiosError(error) && error.response){

Check failure on line 47 in packages/client/src/API.ts

View workflow job for this annotation

GitHub Actions / ESlint

Insert `·`
return Promise.resolve({
status: error.response.status,
data: error.response.data,
headers: error.response.headers,
});
}
return Promise.reject(error);
};

Expand Down

0 comments on commit 1ff20cd

Please sign in to comment.