Improved error handling (part 3)

This commit is contained in:
mdecimus
2024-07-17 18:33:22 +02:00
parent e74b29189a
commit d2ad44cf9f
166 changed files with 2806 additions and 2692 deletions

View File

@@ -8,7 +8,7 @@ use std::sync::Arc;
use common::listener::ServerInstance;
use jmap_proto::{
error::{method::MethodError, request::RequestError},
error::method::MethodError,
method::{
get, query,
set::{self},
@@ -26,7 +26,7 @@ impl JMAP {
request: Request,
access_token: Arc<AccessToken>,
instance: &Arc<ServerInstance>,
) -> Result<Response, RequestError> {
) -> Response {
let mut response = Response::new(
access_token.state(),
request.created_ids.unwrap_or_default(),
@@ -104,7 +104,7 @@ impl JMAP {
response.created_ids.clear();
}
Ok(response)
response
}
async fn handle_method_call(