diff --git a/src/SSLInvalidCertificateException.m b/src/SSLInvalidCertificateException.m index d51f58e..9fdaa99 100644 --- a/src/SSLInvalidCertificateException.m +++ b/src/SSLInvalidCertificateException.m @@ -67,13 +67,9 @@ - (OFString*)description { - if (_description != nil) - return _description; - - _description = [[OFString alloc] initWithFormat: - @"Invalid certificate! Reason: %@", _reason]; - - return _description; + return [OFString stringWithFormat: + @"Invalid certificate in class %@! Reason: %@", [self inClass], + _reason]; } - (OFString*)reason