Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Log argument index and selector for KWMessagePatternException

  • Loading branch information...
commit cb1fd468cb7282bd58824379670f37ea200dc5b6 1 parent 9215fd3
@paulz paulz authored Paul Zabelin committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 Kiwi/KWMessagePattern.m
View
5 Kiwi/KWMessagePattern.m
@@ -146,8 +146,9 @@ - (BOOL)argumentFiltersMatchInvocationArguments:(NSInvocation *)anInvocation {
return NO;
}
} else if ([argumentFilter isEqual:[KWNull null]]) {
- if (!KWObjCTypeIsPointerLike(objCType))
- [NSException raise:@"KWMessagePatternException" format:@"nil was specified as an argument filter, but argument is not a pointer"];
+ if (!KWObjCTypeIsPointerLike(objCType)) {
+ [NSException raise:@"KWMessagePatternException" format:@"nil was specified as an argument filter, but argument(%d) is not a pointer for @selector(%@)", i + 1, NSStringFromSelector([anInvocation selector])];
+ }
void *p = nil;
[anInvocation getMessageArgument:&p atIndex:i];
if (p != nil)
Please sign in to comment.
Something went wrong with that request. Please try again.