summaryrefslogtreecommitdiff
path: root/src/errors.rs
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2022-05-29 23:47:06 -0400
committerCara Salter <cara@devcara.com>2022-05-29 23:47:06 -0400
commit7ba652e291bb52d97faa6d21e7821a64664a00ae (patch)
treed4a72c7bb963eee67dc3a2a92bf5e758e6083e41 /src/errors.rs
parent67be3f2678c86f8e494197c098f68fe0a1882955 (diff)
downloadhomeworld-7ba652e291bb52d97faa6d21e7821a64664a00ae.tar.gz
homeworld-7ba652e291bb52d97faa6d21e7821a64664a00ae.zip
handlers: Implement CRD handlers
Update handler was removed for now. Also postgres!
Diffstat (limited to 'src/errors.rs')
-rw-r--r--src/errors.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/errors.rs b/src/errors.rs
index 70b1a43..42477c0 100644
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -9,6 +9,9 @@ pub enum ServiceError {
#[error("Axum error: {0}")]
Axum(#[from] axum::Error),
+
+ #[error("SQL error: {0}")]
+ Sql(#[from] sqlx::Error),
}
pub type StringResult<T = &'static str> = Result<T, ServiceError>;