blob: 4e77fc127129c97325109b4c9d3593d4ff10aa69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
pub type Result<T> = std::result::Result<T, Error>;
#[derive(thiserror::Error, Debug)]
pub enum Error {
#[error("Ignore error: {0:?}")]
Ignore(#[from] ignore::Error),
#[error("Path error: {0:?}")]
Path(#[from] PathError),
}
#[derive(thiserror::Error, Debug)]
pub enum PathError {
#[error("Path contains invalid unicode: {0:?}")]
Unicode(String),
}
|