Index: src/XMPPExceptions.m ================================================================== --- src/XMPPExceptions.m +++ src/XMPPExceptions.m @@ -68,13 +68,12 @@ if (description != nil) return description; pool = [[OFAutoreleasePool alloc] init]; - description = [[OFString alloc] - initWithFormat: @"An exception occurred in class %@!", - [self className]]; + description = [[OFString alloc] initWithFormat: + @"An exception occurred in class %@!", [self className]]; [pool release]; return description; } @end @@ -126,6 +125,22 @@ [profile release]; [string release]; [super dealloc]; } + +- (OFString*)description +{ + OFAutoreleasePool *pool; + + if (description != nil) + return description; + + pool = [[OFAutoreleasePool alloc] init]; + description = [[OFString alloc] initWithFormat: + @"Stringprep with profile %@ failed on string '%@'!", + profile, string]; + [pool release]; + + return description; +} @end