Skip to content

Commit ca807dc

Browse files
committed
fix: improve connectivity HTML if quota info error
Currently if the provider doesn't support quota info the HTML displays something like ``` example.com: Connected Not supported by your provider. ``` It's not clear that "not supported" only refers to quota info.
1 parent 89f9480 commit ca807dc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/scheduler/connectivity.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,8 @@ impl Context {
476476
};
477477
match &quota.recent {
478478
Err(e) => {
479-
ret += &escaper::encode_minimal(&e.to_string());
479+
// TODO translate "Quota".
480+
ret += &format!("Quota: {}", &*escaper::encode_minimal(&e.to_string()));
480481
}
481482
Ok(quota) => {
482483
if quota.is_empty() {

0 commit comments

Comments
 (0)