From 95ffba343f14d7274e08099b9aca5a85da2259ed Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 24 Jun 2022 10:31:11 +0200 Subject: Error reporting --- src/model/index_counter.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/model/index_counter.rs') diff --git a/src/model/index_counter.rs b/src/model/index_counter.rs index 9e29b421..474ec12c 100644 --- a/src/model/index_counter.rs +++ b/src/model/index_counter.rs @@ -408,7 +408,11 @@ impl Worker for IndexPropagatorWorker { } fn info(&self) -> Option { - Some(format!("{} items in queue", self.buf.len())) + if !self.buf.is_empty() { + Some(format!("{} items in queue", self.buf.len())) + } else { + None + } } async fn work(&mut self, must_exit: &mut watch::Receiver) -> Result { -- cgit v1.2.3