Skip to content

Commit

Permalink
Formatting of res.error
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Mar 9, 2024
1 parent 473ffa8 commit 03b192c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/api/src/utils/client/httpClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ export class HttpClient implements IHttpClient {
if (++errorCount >= requestCount) {
resolve(res);
} else {
this.logger?.debug("Request error, retrying", {routeId, baseUrl}, (await res.error()) as Error);
const err = await res.error();
this.logger?.debug("Request error, retrying", {routeId, baseUrl}, err as Error);
}
}
},
Expand Down

0 comments on commit 03b192c

Please sign in to comment.