mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +00:00
Log if the object where the assertion failed is a class or an instance
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13090 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bd6cb745bb
commit
56f6ac0aba
1 changed files with 2 additions and 1 deletions
|
@ -85,8 +85,9 @@ static NSString *dict_key = @"_NSAssertionHandler";
|
|||
va_start(ap, format);
|
||||
message =
|
||||
[NSString
|
||||
stringWithFormat: @"%@:%d Assertion failed in %@, method %@. %@",
|
||||
stringWithFormat: @"%@:%d Assertion failed in %@(%@), method %@. %@",
|
||||
fileName, line, NSStringFromClass([object class]),
|
||||
[object isInstance] ? @"instance" : @"class",
|
||||
NSStringFromSelector(aSelector), format];
|
||||
NSLogv(message, ap);
|
||||
|
||||
|
|
Loading…
Reference in a new issue