Skip to main content

gitkit_cli/
error.rs

1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum Error {
5    #[error("git error: {0}")]
6    GitError(#[from] git2::Error),
7
8    #[error("io error: {0}")]
9    IoError(#[from] std::io::Error),
10
11    #[error("kit error: {0}")]
12    KitError(String),
13
14    #[error("ratatui error: {0}")]
15    RatatuiError(String),
16}
17
18pub type Result<T> = std::result::Result<T, Error>;