Skip to content

Commit aaa89b0

Browse files
add custom error
1 parent 32f5a8c commit aaa89b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/handlers/http/query.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,8 @@ Description: {0}"#
327327
StreamNotFound(#[from] StreamNotFound),
328328
#[error("SerdeJsonError: {0}")]
329329
SerdeJsonError(#[from] serde_json::Error),
330+
#[error("CustomError: {0}")]
331+
CustomError(String),
330332
}
331333

332334
impl actix_web::ResponseError for QueryError {

0 commit comments

Comments
 (0)