Skip to content

Commit 60435b9

Browse files
don't stringify error.response
1 parent 3f25817 commit 60435b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RequestManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export class RequestManager implements IRequestExecutor {
161161
});
162162
(this.logger || console).error(`Error in Axios API, status ${ error.response?.status } ${ is429 ? "(429)" : "" }`);
163163
(this.logger || console).error(error.config?.url);
164-
(this.logger || console).error(JSON.stringify(error.response?.data || error.response, null, 2));
164+
(this.logger || console).error(JSON.stringify(error.response?.data, null, 2));
165165
(this.logger || console).error(JSON.stringify(error.response?.headers, null, 2));
166166
(this.logger || console).error(JSON.stringify(error.request?.data, null, 2));
167167
throw error;

0 commit comments

Comments
 (0)