mirror of
https://github.com/gitui-org/gitui.git
synced 2026-10-12 02:14:16 +00:00
14 lines
298 B
Rust
14 lines
298 B
Rust
use std::{num::TryFromIntError, path::PathBuf};
|
|
use thiserror::Error;
|
|
|
|
#[derive(Error, Debug)]
|
|
pub enum Error {
|
|
#[error("InvalidPath: `{0}`")]
|
|
InvalidPath(PathBuf),
|
|
|
|
#[error("TryFromInt error:{0}")]
|
|
IntConversion(#[from] TryFromIntError),
|
|
}
|
|
|
|
pub type Result<T> = std::result::Result<T, Error>;
|