Page MenuHomePhabricator

D8299.diff
No OneTemporary

D8299.diff

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(())

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 30, 9:36 AM (21 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2600432
Default Alt Text
D8299.diff (1 KB)

Event Timeline