diff options
Diffstat (limited to 'src/finder/error.rs')
-rw-r--r-- | src/finder/error.rs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/finder/error.rs b/src/finder/error.rs index 6ea5017..a8009a8 100644 --- a/src/finder/error.rs +++ b/src/finder/error.rs @@ -2,9 +2,15 @@ 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("Child process has not been spawned")] + NoChild, - #[error("Stdin error: Failed to get finder's stdin")] + #[error("Failed to get Child's stdin")] Stdin, + + #[error("Config error: {0}")] + Config(#[from] figment::error::Error), + + #[error("IO error: {0}")] + IO(#[from] std::io::Error), } |