Unverified Commit 65e12405 authored by Steven Fackler's avatar Steven Fackler Committed by GitHub
Browse files

Merge pull request #854 from sfackler/error-description

Always include something in ErrorStack's Display
parents 42ec251b 85d8db21
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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 {