diff options
Diffstat (limited to 'src/conversation/handlers/create')
| -rw-r--r-- | src/conversation/handlers/create/mod.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/conversation/handlers/create/mod.rs b/src/conversation/handlers/create/mod.rs index 2b7fa39..aa77411 100644 --- a/src/conversation/handlers/create/mod.rs +++ b/src/conversation/handlers/create/mod.rs @@ -57,9 +57,7 @@ impl IntoResponse for Error { app::CreateError::InvalidName(_) => { (StatusCode::BAD_REQUEST, error.to_string()).into_response() } - app::CreateError::Name(_) | app::CreateError::Database(_) => { - Internal::from(error).into_response() - } + app::CreateError::Failed(_) => Internal::from(error).into_response(), } } } |
