Support multiple exit codes

..with more specific error enums.
This commit is contained in:
Dustin J. Mitchell
2021-05-03 17:57:04 -04:00
parent 2345a57940
commit bb7130f960
23 changed files with 112 additions and 34 deletions

View File

@@ -1,6 +1,9 @@
use thiserror::Error;
#[derive(Debug, Error, Eq, PartialEq, Clone)]
#[non_exhaustive]
/// Errors returned from taskchampion operations
pub enum Error {
#[error("Task Database Error: {}", _0)]
DbError(String),
#[error("Task Database Error: {0}")]
Database(String),
}