diff options
Diffstat (limited to 'src/errors.rs')
-rw-r--r-- | src/errors.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/errors.rs b/src/errors.rs index 06a0233..d76db92 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -7,7 +7,7 @@ use axum::Json; #[derive(Debug, Error)] pub enum ServiceError { - #[error("Waifulib error: {0}")] + #[error("Solarlib error: {0}")] Solarlib(#[from] solarlib::errors::Error), #[error("Axum error: {0}")] @@ -17,6 +17,7 @@ pub enum ServiceError { pub type StringResult<T = &'static str> = std::result::Result<T, ServiceError>; pub type JsonResult<T> = std::result::Result<T, ServiceError>; +pub type NoneResult = std::result::Result<(), ServiceError>; impl IntoResponse for ServiceError { fn into_response(self) -> Response { |