diff --git a/src/client.rs b/src/client.rs index 0334952..14b0f00 100644 --- a/src/client.rs +++ b/src/client.rs @@ -185,14 +185,12 @@ struct Message { impl Message { fn convert(self, recursive: bool) -> Option { if let Some(value) = self.message.or(self.faultstring).or(self.title) { - println!("Normal {}", value); Some(value) } else if recursive { if let Some(json) = self.error_message { - return serde_json::from_str::(&json).ok().and_then(|msg| { - println!("submessage {:?}", msg); - msg.convert(false) - }); + serde_json::from_str::(&json) + .ok() + .and_then(|msg| msg.convert(false)) } else { None }