Macros fixed to accomodate err kotlin and ios
This commit is contained in:
parent
68dfdca2a7
commit
f2ca8260ab
|
@ -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} } ))
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue