Skip to content

Commit

Permalink
Improve RP error matching
Browse files Browse the repository at this point in the history
  • Loading branch information
trholdridge committed Nov 19, 2024
1 parent d12c771 commit fa7407f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ajax/GoogleStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const checkRequesterPaysError = async (response): Promise<RequesterPaysErrorInfo
};

export const responseContainsRequesterPaysError = (responseText) => {
return _.includes('access to user project', responseText);
return _.some((msg) => _.includes(msg, responseText), ['access to user project', 'user project to bill']);
};

// requesterPaysError may be set on responses from requests to the GCS API that are wrapped in withRequesterPays.
Expand Down

0 comments on commit fa7407f

Please sign in to comment.