Avoid pluralizing 'retry' for single value (#16535)

This commit is contained in:
Charlie Marsh
2025-10-31 10:28:51 -04:00
committed by GitHub
parent 5c71b5c124
commit 82aa0d0ef5
3 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ pub enum Error {
TooManyParts(String),
#[error("Failed to download {0}")]
NetworkError(DisplaySafeUrl, #[source] WrappedReqwestError),
#[error("Request failed after {retries} retries")]
#[error("Request failed after {retries} {subject}", subject = if *retries > 1 { "retries" } else { "retry" })]
NetworkErrorWithRetries {
#[source]
err: Box<Error>,