use a distinct error for out-of-sync replica

This commit is contained in:
Dustin J. Mitchell
2021-10-20 21:15:05 -04:00
parent c72cae648d
commit ec35d4fa20
4 changed files with 36 additions and 6 deletions

View File

@@ -140,7 +140,7 @@ impl Replica {
) -> anyhow::Result<()> {
self.taskdb
.sync(server, avoid_snapshots)
.context("Failed to synchronize")?;
.context("Failed to synchronize with server")?;
self.rebuild_working_set(false)
.context("Failed to rebuild working set after sync")?;
Ok(())