blob: 5b0fea899acb430a26df26068b557ec32ccafef2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
pub type Result<T> = std::result::Result<T, Error>;
#[derive(thiserror::Error, Debug)]
pub enum Error {
#[error("IO error: {0:?}")]
IO(#[from] std::io::Error),
#[error("Config error: {0:?}")]
Config(#[from] figment::error::Error),
#[error("Ignore error: {0:?}")]
Ignore(#[from] ignore::Error),
#[error("Process error: {0:?}")]
Finder(String),
#[error("Path error: {0:?}")]
Path(String),
}
|