From 0c6c752ecc153e3f0c83e26efad18ca2adb7db7e Mon Sep 17 00:00:00 2001 From: marcjay Date: Tue, 26 Nov 2013 00:03:18 +0000 Subject: [PATCH] Adjusting NSInvalidArgumentException message to match valid arguments --- Code/TKStateMachine.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/TKStateMachine.m b/Code/TKStateMachine.m index d90f716..94f836c 100644 --- a/Code/TKStateMachine.m +++ b/Code/TKStateMachine.m @@ -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]; }