From e3af59332c648b6456796045f56864a67f7bf03c Mon Sep 17 00:00:00 2001 From: Khushboo Verma Date: Wed, 3 Sep 2025 18:45:43 +0530 Subject: [PATCH] Replace err with warning --- app/controllers/api/vcs.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/controllers/api/vcs.php b/app/controllers/api/vcs.php index 9448618cb7..8ca0decacf 100644 --- a/app/controllers/api/vcs.php +++ b/app/controllers/api/vcs.php @@ -15,6 +15,7 @@ use Appwrite\Utopia\Request; use Appwrite\Utopia\Response; use Appwrite\Vcs\Comment; use Utopia\App; +use Utopia\CLI\Console; use Utopia\Config\Config; use Utopia\Database\Database; use Utopia\Database\DateTime; @@ -147,7 +148,7 @@ $createGitDeployments = function (GitHub $github, string $providerInstallationId break; } catch (\Throwable $err) { if ($retries >= 9) { - throw $err; + Console::warning("Error creating vcs comment lock for " . $latestCommentId . ": " . $err->getMessage()); } \sleep(1); @@ -214,7 +215,7 @@ $createGitDeployments = function (GitHub $github, string $providerInstallationId break; } catch (\Throwable $err) { if ($retries >= 9) { - throw $err; + Console::warning("Error creating vcs comment lock for " . $latestCommentId . ": " . $err->getMessage()); } \sleep(1); @@ -425,7 +426,7 @@ $createGitDeployments = function (GitHub $github, string $providerInstallationId break; } catch (\Throwable $err) { if ($retries >= 9) { - throw $err; + Console::warning("Error creating vcs comment lock for " . $latestCommentId . ": " . $err->getMessage()); } \sleep(1);