reorganize into separate crates
- taskchampion -- core implementation of a replica - taskchampion-cli -- command-line interface - taskchampion-sync-server -- server implementation (not much yet!)
This commit is contained in:
10
taskchampion/src/errors.rs
Normal file
10
taskchampion/src/errors.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
use failure::Fail;
|
||||
|
||||
#[derive(Debug, Fail, Eq, PartialEq, Clone)]
|
||||
pub enum Error {
|
||||
#[fail(display = "Task Database Error: {}", _0)]
|
||||
DBError(String),
|
||||
|
||||
#[fail(display = "Replica Error: {}", _0)]
|
||||
ReplicaError(String),
|
||||
}
|
||||
Reference in New Issue
Block a user