integrate ruma js_int errors into enum
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
5db816277b
commit
40d53563fc
3 changed files with 21 additions and 23 deletions
|
@ -54,6 +54,10 @@ pub enum Error {
|
|||
#[error(transparent)]
|
||||
Json(#[from] serde_json::Error),
|
||||
#[error(transparent)]
|
||||
JsParseInt(#[from] ruma::JsParseIntError), // js_int re-export
|
||||
#[error(transparent)]
|
||||
JsTryFromInt(#[from] ruma::JsTryFromIntError), // js_int re-export
|
||||
#[error(transparent)]
|
||||
Path(#[from] axum::extract::rejection::PathRejection),
|
||||
#[error("Regex error: {0}")]
|
||||
Regex(#[from] regex::Error),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue