From 718d080e7a4c5703c18335f576d4ad6b61b6a4c0 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Fri, 16 Feb 2024 23:47:06 +0900 Subject: [PATCH] index: make reindexing message less scary --- lib/src/default_index/store.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/default_index/store.rs b/lib/src/default_index/store.rs index 0ac974176..ad388a84a 100644 --- a/lib/src/default_index/store.rs +++ b/lib/src/default_index/store.rs @@ -331,7 +331,10 @@ impl IndexStore for DefaultIndexStore { // If the index was corrupt (maybe it was written in a different format), // we just reindex. // TODO: Move this message to a callback or something. - eprintln!("{err}: {source}. Reindexing...", source = err.error); + eprintln!( + "{err} (maybe the format has changed): {source}. Reindexing...", + source = err.error + ); self.reinit().map_err(|err| IndexReadError(err.into()))?; self.build_index_segments_at_operation(op, store) }