Skip to content

Commit

Permalink
Adjusting NSInvalidArgumentException message to match valid arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
marcjay committed Nov 26, 2013
1 parent 6a079a9 commit 0c6c752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/TKStateMachine.m
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ - (NSSet *)states
- (void)addState:(TKState *)state
{
TKRaiseIfActive();
if (! [state isKindOfClass:[TKState class]]) [NSException raise:NSInvalidArgumentException format:@"Expected a `TKState` object or `NSString` object specifying the name of a state, instead got a `%@` (%@)", [state class], state];
if (! [state isKindOfClass:[TKState class]]) [NSException raise:NSInvalidArgumentException format:@"Expected a `TKState` object, instead got a `%@` (%@)", [state class], state];
if (self.initialState == nil) self.initialState = state;
[self.mutableStates addObject:state];
}
Expand Down

0 comments on commit 0c6c752

Please sign in to comment.