diff --git a/src/ios/CDVCamera.m b/src/ios/CDVCamera.m index a4e388fde..a8e656b7d 100644 --- a/src/ios/CDVCamera.m +++ b/src/ios/CDVCamera.m @@ -516,8 +516,8 @@ - (CDVPluginResult*)resultForVideo:(NSDictionary*)info NSString* moviePath = [[info objectForKey:UIImagePickerControllerMediaURL] absoluteString]; return [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:moviePath]; } @catch (NSException *exception) { - NSLog(@"Camera.resultForVideo: error retrieving file path. Original exception: %@: %@", exception.name, exception.reason); - return CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:[@"%@: %@", exception.name, exception.reason]; + NSLog(@"Camera.resultForVideo: error retrieving file path"); + return [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:messageAsString:[exception reason]]; } }