diff options
author | Cara Salter <cara@devcara.com> | 2022-05-29 23:47:06 -0400 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2022-05-29 23:47:06 -0400 |
commit | 7ba652e291bb52d97faa6d21e7821a64664a00ae (patch) | |
tree | d4a72c7bb963eee67dc3a2a92bf5e758e6083e41 /src/errors.rs | |
parent | 67be3f2678c86f8e494197c098f68fe0a1882955 (diff) | |
download | homeworld-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.rs | 3 |
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>; |