From 2aa96e2d8c2942b856c558ef8369c049862ef095 Mon Sep 17 00:00:00 2001 From: WofWca Date: Thu, 16 Apr 2026 13:39:00 +0400 Subject: [PATCH 1/2] fix: improve connectivity HTML if quota info error Currently if there is an error getting quota the HTML displays something like ``` example.com: Connected Failed to parse. ``` It's not clear that "Failed to parse" only refers to quota info. --- src/scheduler/connectivity.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scheduler/connectivity.rs b/src/scheduler/connectivity.rs index 19086ac92c..fdbc93aa72 100644 --- a/src/scheduler/connectivity.rs +++ b/src/scheduler/connectivity.rs @@ -421,7 +421,8 @@ impl Context { // If not supported by the provider, // just skip the "quota" section. if !matches!(e, crate::quota::Error::NotSupportedByProvider) { - ret += &escaper::encode_minimal(&e.to_string()); + // TODO translate "Quota". + ret += &format!("Quota: {}", &*escaper::encode_minimal(&e.to_string())); } } Ok(quota) => { From 07284b83e53d43b122bca2e1e1d76a6403a44a8a Mon Sep 17 00:00:00 2001 From: WofWca Date: Mon, 25 May 2026 16:06:36 +0000 Subject: [PATCH 2/2] refactor: remove TODO --- src/scheduler/connectivity.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/scheduler/connectivity.rs b/src/scheduler/connectivity.rs index fdbc93aa72..0c13645032 100644 --- a/src/scheduler/connectivity.rs +++ b/src/scheduler/connectivity.rs @@ -421,7 +421,6 @@ impl Context { // If not supported by the provider, // just skip the "quota" section. if !matches!(e, crate::quota::Error::NotSupportedByProvider) { - // TODO translate "Quota". ret += &format!("Quota: {}", &*escaper::encode_minimal(&e.to_string())); } }