From 6027033ecadcf834ab51256384967e526fee4b4d Mon Sep 17 00:00:00 2001 From: Nikolay Eskov Date: Thu, 2 Apr 2026 17:28:03 +0300 Subject: [PATCH] Fix for Wrapped error is always nil Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- cmd/bots/internal/telegram/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/bots/internal/telegram/config/config.go b/cmd/bots/internal/telegram/config/config.go index a394ca77..ba947bd5 100644 --- a/cmd/bots/internal/telegram/config/config.go +++ b/cmd/bots/internal/telegram/config/config.go @@ -82,7 +82,7 @@ func tryRemoveWebhookIfExists(botToken string) (err error) { } }() if resp.StatusCode == http.StatusInternalServerError { - return errors.Wrap(err, "failed to remove webhook") + return errors.Errorf("failed to remove webhook: %s", resp.Status) } return nil }