Macros fixed to accomodate err kotlin and ios

This commit is contained in:
Franklin 2023-10-27 20:43:07 -04:00
parent 68dfdca2a7
commit f2ca8260ab

View File

@ -63,7 +63,7 @@ macro_rules! x_u_res_db_or_res {
( $e:expr ) => { ( $e:expr ) => {
match $e { match $e {
Ok(result) => result, 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} } ))
} }
}; };
} }