diff options
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs index 2bcb899..ec76943 100644 --- a/src/error.rs +++ b/src/error.rs @@ -14,8 +14,10 @@ pub enum Error { SerdeJson(#[from] serde_json::Error), #[error("SerdeYaml error: {0}")] SerdeYaml(#[from] serde_yaml::Error), + #[error("IO error: {0}")] + IO(#[from] std::io::Error), #[error("Futures Join error : {0}")] - Join(#[from] tokio::task::JoinError), + JoinError(#[from] tokio::task::JoinError), #[error("File `{}` is malformed; try removing it", .0.display())] MalformedFile(PathBuf), #[error("Lacking {0:?} permissions on `{}`", .1.display())] @@ -23,7 +25,7 @@ pub enum Error { #[error("{0}")] StackExchange(String), #[error("{0}")] - Scraping(String), + ScrapingError(String), #[error("Couldn't find a suitable project directory; is your OS supported?")] ProjectDir, #[error("Sorry, couldn't find any answers to your question")] |