diff options
Diffstat (limited to 'openssl/src/error.rs')
-rw-r--r-- | openssl/src/error.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openssl/src/error.rs b/openssl/src/error.rs index f272da67..ea278b14 100644 --- a/openssl/src/error.rs +++ b/openssl/src/error.rs @@ -273,7 +273,7 @@ impl fmt::Display for Error { } match self.reason() { Some(r) => write!(fmt, ":{}", r)?, - None => write!(fmt, ":reason({})", ffi::ERR_GET_FUNC(self.code()))?, + None => write!(fmt, ":reason({})", ffi::ERR_GET_REASON(self.code()))?, } write!( fmt, |