From ea1ace826186fa008ff1fa64f1125f435ea0cedb Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Wed, 30 Nov 2022 03:17:47 -0600 Subject: refactor: merge error types into single enum --- src/error.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/error.rs') diff --git a/src/error.rs b/src/error.rs index d923642..c7b6448 100644 --- a/src/error.rs +++ b/src/error.rs @@ -6,7 +6,14 @@ pub enum Error { Ignore(#[from] ignore::Error), #[error(transparent)] - Project(#[from] crate::project::Error), + IO(#[from] std::io::Error), + + #[cfg(feature = "git")] + #[error(transparent)] + Git(#[from] git2::Error), + + #[error(transparent)] + SystemTime(#[from] std::time::SystemTimeError), #[error(transparent)] Other(#[from] anyhow::Error), -- cgit v1.2.3-70-g09d2