From fa7407f786814357a72e66750a4bc2309f8eed19 Mon Sep 17 00:00:00 2001 From: trholdridge Date: Tue, 19 Nov 2024 10:42:02 -0500 Subject: [PATCH] Improve RP error matching --- src/libs/ajax/GoogleStorage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ajax/GoogleStorage.ts b/src/libs/ajax/GoogleStorage.ts index 6f9e9bb9c2..2fdcaf7678 100644 --- a/src/libs/ajax/GoogleStorage.ts +++ b/src/libs/ajax/GoogleStorage.ts @@ -76,7 +76,7 @@ const checkRequesterPaysError = async (response): Promise { - 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.