diff options
author | Cara Salter <cara@devcara.com> | 2022-06-10 14:40:56 -0400 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2022-06-10 14:40:56 -0400 |
commit | 4c044c28559f356883e4ab3cec437bbb20ce7f89 (patch) | |
tree | e8f697b87a56726689088c2127aba297276e3ffe /src/errors.rs | |
parent | f64edeb631bfdefcd757483d7dfbe204daabf1ab (diff) | |
download | solard-4c044c28559f356883e4ab3cec437bbb20ce7f89.tar.gz solard-4c044c28559f356883e4ab3cec437bbb20ce7f89.zip |
planets: Create new planets
Star systems in the palm of your keyboard!
Diffstat (limited to 'src/errors.rs')
-rw-r--r-- | src/errors.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/errors.rs b/src/errors.rs index b22932f..e0a6df9 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -15,6 +15,12 @@ pub enum ServiceError { #[error("Not Found")] NotFound, + + #[error("Reqwest: {0}")] + Reqwest(#[from] reqwest::Error), + + #[error("Command error: {0}")] + Command(#[from] std::io::Error) } pub type StringResult<T = &'static str> = std::result::Result<T, ServiceError>; |