diff options
author | Toby Vincent <tobyv13@gmail.com> | 2022-11-17 23:12:10 -0600 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2022-11-17 23:12:10 -0600 |
commit | 09be0362d42034e343b64de08618c995b63c90fe (patch) | |
tree | 23f44d4e36cd767ea86f524db6016d64819eaf9b /src/finder/error.rs | |
parent | 082d11db68efa63f6da1be29cc9dc95b8f9e1735 (diff) |
feat: get intitial finder working
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), } |