You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (200 !== $statusCode = $response->getStatusCode()) {
265
285
$this->logger->error(sprintf('Unable to update file in Crowdin for file ID "%d" and domain "%s": "%s".', $fileId, $domain, $response->getContent(false)));
266
286
287
+
if (500 <= $statusCode) {
288
+
thrownewProviderException(sprintf('Unable to update file in Crowdin for file ID "%d" and domain "%s".', $fileId, $domain), $response);
289
+
}
290
+
267
291
returnnull;
268
292
}
269
293
@@ -324,9 +348,7 @@ private function listStrings(int $fileId, int $limit, int $offset): array
324
348
]);
325
349
326
350
if (200 !== $response->getStatusCode()) {
327
-
$this->logger->error(sprintf('Unable to list strings for file %d: "%s".', $fileId, $response->getContent()));
328
-
329
-
return [];
351
+
thrownewProviderException(sprintf('Unable to list strings for file "%d".', $fileId), $response);
0 commit comments