dupes_core/error.rs
1use std::path::PathBuf;
2
3#[derive(Debug, thiserror::Error)]
4pub enum Error {
5 #[error("I/O error: {0}")]
6 Io(#[from] std::io::Error),
7
8 #[error("No source files found in {0}")]
9 NoSourceFiles(PathBuf),
10
11 #[error("{0}")]
12 Other(String),
13}
14
15pub type Result<T> = std::result::Result<T, Error>;