aboutsummaryrefslogtreecommitdiff
path: root/src/errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/errors.rs')
-rw-r--r--src/errors.rs6
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>;