mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-15 08:53:16 +00:00
index: make reindexing message less scary
This commit is contained in:
parent
a80d0183a2
commit
718d080e7a
1 changed files with 4 additions and 1 deletions
|
@ -331,7 +331,10 @@ impl IndexStore for DefaultIndexStore {
|
||||||
// If the index was corrupt (maybe it was written in a different format),
|
// If the index was corrupt (maybe it was written in a different format),
|
||||||
// we just reindex.
|
// we just reindex.
|
||||||
// TODO: Move this message to a callback or something.
|
// 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.reinit().map_err(|err| IndexReadError(err.into()))?;
|
||||||
self.build_index_segments_at_operation(op, store)
|
self.build_index_segments_at_operation(op, store)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue