Make Bad Response error print the actual response
This commit is contained in:
parent
d9caeccc57
commit
c899986685
1 changed files with 3 additions and 0 deletions
|
|
@ -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()),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue