diff --git a/src/error.rs b/src/error.rs index cc029a4..7b71edf 100644 --- a/src/error.rs +++ b/src/error.rs @@ -62,6 +62,9 @@ impl fmt::Display for Error { Error::Io(ref e) => fmt::Display::fmt(e, f), Error::Tls(ref e) => fmt::Display::fmt(e, f), Error::TlsHandshake(ref e) => fmt::Display::fmt(e, f), + Error::BadResponse(ref data) => { + write!(f, "{}: {}", &String::from(self.description()), &data.join("\n")) + } ref e => f.write_str(e.description()), } }