From 6098a055b1054f64e87f3aa76e7e79beb77a1a48 Mon Sep 17 00:00:00 2001 From: Philip Gichuhi Date: Thu, 2 Nov 2023 06:30:02 +0300 Subject: [PATCH] Throw network exception if retries fail due to network issues --- docs/Examples.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/Examples.md b/docs/Examples.md index a019f4927f6..b3239803b85 100644 --- a/docs/Examples.md +++ b/docs/Examples.md @@ -340,9 +340,7 @@ try { $retries ++; } } - if ($retries >= $maxRetries && !$uploadSession) { - $cancelledUploadSession = $largeFileUpload->cancel(); - } + throw $ex; } ```