Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Better description for OFException.

  • Loading branch information...
commit bae8304d32b3719f038e4fb70c92b62d80c00b14 1 parent 50a123d
@Midar authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/exceptions/OFException.m
View
8 src/exceptions/OFException.m
@@ -58,6 +58,12 @@ - (Class)inClass
- (OFString*)description
{
- return @"An exception occurred";
+ if (description != nil)
+ return description;
+
+ description = [[OFString alloc] initWithFormat:
+ @"An exception of class %@ occurred in class %@", isa, inClass];
+
+ return description;
}
@end

0 comments on commit bae8304

Please sign in to comment.
Something went wrong with that request. Please try again.