From 98647ff0afcce19404755267255e18236278d7cb Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Wed, 9 Oct 2024 23:24:24 +0800 Subject: [PATCH] attestation: show unit of time for retry message Otherwise this just shows a message like Failed to verify attestation. Retrying in 27... which is a little vague. Let's make it clear that that refers to seconds. --- Library/Homebrew/attestation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/attestation.rb b/Library/Homebrew/attestation.rb index 4e2510ab77..6987c1de28 100644 --- a/Library/Homebrew/attestation.rb +++ b/Library/Homebrew/attestation.rb @@ -253,7 +253,7 @@ module Homebrew raise if @attestation_retry_count[bottle] >= ATTESTATION_MAX_RETRIES sleep_time = 3 ** @attestation_retry_count[bottle] - opoo "Failed to verify attestation. Retrying in #{sleep_time}..." + opoo "Failed to verify attestation. Retrying in #{sleep_time}s..." sleep sleep_time if ENV["HOMEBREW_TESTS"].blank? @attestation_retry_count[bottle] += 1 retry