mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
use a distinct error for out-of-sync replica
This commit is contained in:
parent
c72cae648d
commit
ec35d4fa20
4 changed files with 36 additions and 6 deletions
|
@ -4,6 +4,12 @@ use thiserror::Error;
|
|||
#[non_exhaustive]
|
||||
/// Errors returned from taskchampion operations
|
||||
pub enum Error {
|
||||
/// A task-database-related error
|
||||
#[error("Task Database Error: {0}")]
|
||||
Database(String),
|
||||
/// An error specifically indicating that the local replica cannot
|
||||
/// be synchronized with the sever, due to being out of date or some
|
||||
/// other irrecoverable error.
|
||||
#[error("Local replica is out of sync with the server")]
|
||||
OutOfSync,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue