diff --git a/keyserver/addons/rust-node-addon/src/identity_client/add_reserved_username.rs b/keyserver/addons/rust-node-addon/src/identity_client/add_reserved_username.rs --- a/keyserver/addons/rust-node-addon/src/identity_client/add_reserved_username.rs +++ b/keyserver/addons/rust-node-addon/src/identity_client/add_reserved_username.rs @@ -16,7 +16,7 @@ identity_client .add_reserved_username(add_reserved_username_request) .await - .map_err(|_| Error::from_status(Status::GenericFailure))? + .map_err(|e| Error::new(Status::GenericFailure, e.to_string()))? .into_inner(); Ok(()) diff --git a/keyserver/addons/rust-node-addon/src/identity_client/remove_reserved_username.rs b/keyserver/addons/rust-node-addon/src/identity_client/remove_reserved_username.rs --- a/keyserver/addons/rust-node-addon/src/identity_client/remove_reserved_username.rs +++ b/keyserver/addons/rust-node-addon/src/identity_client/remove_reserved_username.rs @@ -16,7 +16,7 @@ identity_client .remove_reserved_username(remove_reserved_username_request) .await - .map_err(|_| Error::from_status(Status::GenericFailure))? + .map_err(|e| Error::new(Status::GenericFailure, e.to_string()))? .into_inner(); Ok(())