Skip to content

Commit

Permalink
don't print request object in errors (nothing useful)
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Oct 7, 2024
1 parent 58382cc commit 82ea82c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/v2/tools/handleError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,7 @@ export default function handleError(err: any, route: string, method: string): AP
printed = true;
}
if (err instanceof AxiosError) {
console.error(
"Axios Error: Request, Response\n:request:",
err.request,
"\nresponse:",
err.response,
);
console.error("Axios Error: Response:\n", err.response);
printed = true;
}
// print some empty lines between each error so scrolling through logs doesn't give you a migraine
Expand Down

0 comments on commit 82ea82c

Please sign in to comment.