Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
INT-10878: update integration error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
gastonyelmini committed May 15, 2024
1 parent a0a64c5 commit ec61f39
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/google-cloud/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ export class Client {
): boolean {
let isAuthorizationError = false;

if (
(err.response?.status === 403 || err.status === 403) &&
!isQuotaLimitError(err)
) {
const status =
err.response?.status !== undefined ? err.response?.status : err.status;

if ((status === 403 || status === 404) && !isQuotaLimitError(err)) {
isAuthorizationError = true;

if (
Expand Down

0 comments on commit ec61f39

Please sign in to comment.