diff --git a/src/client.rs b/src/client.rs index 676aaca..dd2e21c 100644 --- a/src/client.rs +++ b/src/client.rs @@ -129,7 +129,15 @@ impl EppClient { let response = self.connection.transact(&xml)?.await?; debug!("{}: response: {}", self.connection.registry, &response); - let rsp = xml::deserialize::>(&response)?; + let rsp = + match xml::deserialize::>(&response) { + Ok(rsp) => rsp, + Err(e) => { + error!(%response, "failed to deserialize response for transaction: {e}"); + return Err(e); + } + }; + if rsp.data.result.code.is_success() { return Ok(rsp.data); }