Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional type information in assert #1440

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion SmartDeviceLink/NSMutableDictionary+Store.m
Expand Up @@ -55,7 +55,7 @@ - (nullable id)sdl_objectForName:(SDLRPCParameterName)name ofClass:(Class)classT
// The object in the store is not correct, we'll assert in debug and return an error and nil
NSError *wrongObjectError = [NSError sdl_rpcStore_invalidObjectErrorWithObject:obj expectedType:classType];

SDLLogAssert(@"Retrieving object from store error: %@", wrongObjectError.localizedFailureReason);
SDLLogAssert(@"Retrieving object from store error: %@, for object key: \"%@\", in dictionary: %@", wrongObjectError.localizedFailureReason, name, self);

if (error) {
*error = wrongObjectError;
Expand Down