summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLStateMachine.m
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLink/SDLStateMachine.m')
-rw-r--r--SmartDeviceLink/SDLStateMachine.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/SmartDeviceLink/SDLStateMachine.m b/SmartDeviceLink/SDLStateMachine.m
index 2d197344d..f86a002b2 100644
--- a/SmartDeviceLink/SDLStateMachine.m
+++ b/SmartDeviceLink/SDLStateMachine.m
@@ -45,7 +45,8 @@ SDLStateMachineTransitionFormat const SDLStateMachineTransitionFormatDidEnter =
}
if (states[initialState] == nil) {
- @throw [NSException exceptionWithName:NSInternalInconsistencyException reason:@"Attempted to start with an SDLState that is not in the states dictionary" userInfo:nil];
+ NSString *reasonMessage = [NSString stringWithFormat:@"Attempted to start with an SDLState (%@) that is not in the states dictionary", initialState];
+ @throw [NSException exceptionWithName:NSInternalInconsistencyException reason:reasonMessage userInfo:nil];
}
_target = target;