diff --git a/postgres-tokio/src/error.rs b/postgres-tokio/src/error.rs index 83af97e5..ef178ee7 100644 --- a/postgres-tokio/src/error.rs +++ b/postgres-tokio/src/error.rs @@ -16,7 +16,7 @@ pub enum Error { impl fmt::Display for Error { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { - fmt.write_str(error::Error::description(self))?; + try!(fmt.write_str(error::Error::description(self))); match *self { Error::Db(ref err, _) => write!(fmt, ": {}", err), Error::Io(ref err) => write!(fmt, ": {}", err),