From d3be8a2881ea4d9f08a9c603320215ec847e11ba Mon Sep 17 00:00:00 2001 From: Rain Date: Thu, 12 Feb 2026 10:28:57 +0800 Subject: [PATCH] fix: correct grammatically awkward cooldown message Change 'Cooling down until in 10 secs.' to 'Cooldown active; retry in 10 sec.' to fix the awkward 'until in' grammar and match the internal logging style. Fixes #38 --- Sources/RepoBarCore/API/GitHubRequestRunner.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/RepoBarCore/API/GitHubRequestRunner.swift b/Sources/RepoBarCore/API/GitHubRequestRunner.swift index 54237ceb..02cff3de 100644 --- a/Sources/RepoBarCore/API/GitHubRequestRunner.swift +++ b/Sources/RepoBarCore/API/GitHubRequestRunner.swift @@ -52,7 +52,7 @@ actor GitHubRequestRunner { await self.diag.message("Cooldown active for \(url.absoluteString) until \(cooldown)") throw GitHubAPIError.serviceUnavailable( retryAfter: cooldown, - message: "Cooling down until \(RelativeFormatter.string(from: cooldown, relativeTo: Date()))." + message: "Cooldown active; retry \(RelativeFormatter.string(from: cooldown, relativeTo: Date()))." ) }