diff --git a/keyserver/addons/rust-node-addon/src/identity_client/mod.rs b/keyserver/addons/rust-node-addon/src/identity_client/mod.rs --- a/keyserver/addons/rust-node-addon/src/identity_client/mod.rs +++ b/keyserver/addons/rust-node-addon/src/identity_client/mod.rs @@ -96,12 +96,7 @@ DEVICE_TYPE.to_string(), ) .await - .map_err(|_| { - Error::new( - Status::GenericFailure, - "Unable to connect to identity service".to_string(), - ) - }) + .map_err(|e| Error::new(Status::GenericFailure, e)) } async fn get_authenticated_identity_client( @@ -120,12 +115,7 @@ DEVICE_TYPE.to_string(), ) .await - .map_err(|_| { - Error::new( - Status::GenericFailure, - "Unable to connect to identity service".to_string(), - ) - }) + .map_err(|e| Error::new(Status::GenericFailure, e)) } #[napi(object)]