From f2ca8260abf695139cda46954177e56387929feb Mon Sep 17 00:00:00 2001 From: Franklin Date: Fri, 27 Oct 2023 20:43:07 -0400 Subject: [PATCH] Macros fixed to accomodate err kotlin and ios --- src/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/macros.rs b/src/macros.rs index 45ed882..3828de5 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -63,7 +63,7 @@ macro_rules! x_u_res_db_or_res { ( $e:expr ) => { match $e { Ok(result) => result, - Err(error) => return Err(err::Error::new(err::trace!()).message(error.to_string()).error_type(err::ErrorType::Service(err::ServiceError::DatabaseError(error)))) + Err(error) => return Err(err::Error::new(err::trace!()).message(error.to_string()).error_type(err::ErrorType::Service { error: err::ServiceError::DatabaseError{error: error} } )) } }; } \ No newline at end of file