aboutsummaryrefslogtreecommitdiff
path: root/openssl/src
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/src')
-rw-r--r--openssl/src/error.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/openssl/src/error.rs b/openssl/src/error.rs
index 7f3d472e..1ddd0f50 100644
--- a/openssl/src/error.rs
+++ b/openssl/src/error.rs
@@ -59,6 +59,10 @@ impl ErrorStack {
impl fmt::Display for ErrorStack {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
+ if self.0.is_empty() {
+ return fmt.write_str("OpenSSL error");
+ }
+
let mut first = true;
for err in &self.0 {
if !first {