summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorFxQnLr <[email protected]>2024-03-04 21:37:55 +0100
committerFxQnLr <[email protected]>2024-03-04 21:37:55 +0100
commit0a058ba2064d323451462a79c71580dea7d8ec8c (patch)
tree3e0a5a8c2d48aac8b1ff1720455db47a0c50386a /src/error.rs
parent0920c86de3523785b5f4ac67e2090f0736f9fcb2 (diff)
downloadwebol-0a058ba2064d323451462a79c71580dea7d8ec8c.tar
webol-0a058ba2064d323451462a79c71580dea7d8ec8c.tar.gz
webol-0a058ba2064d323451462a79c71580dea7d8ec8c.zip
Closes #19. Added OpenApi through `utoipa`
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/error.rs b/src/error.rs
index 513b51b..006fcdb 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -5,10 +5,11 @@ use axum::response::{IntoResponse, Response};
5use axum::Json; 5use axum::Json;
6use mac_address::MacParseError; 6use mac_address::MacParseError;
7use serde_json::json; 7use serde_json::json;
8use utoipa::ToSchema;
8use std::io; 9use std::io;
9use tracing::error; 10use tracing::error;
10 11
11#[derive(Debug, thiserror::Error)] 12#[derive(Debug, thiserror::Error, ToSchema)]
12pub enum Error { 13pub enum Error {
13 #[error("db: {source}")] 14 #[error("db: {source}")]
14 Db { 15 Db {