diff --git a/src/ios/CDVCamera.m b/src/ios/CDVCamera.m index fb04c6af1..a4e388fde 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"); - return [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:@""]; + NSLog(@"Camera.resultForVideo: error retrieving file path. Original exception: %@: %@", exception.name, exception.reason); + return CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:[@"%@: %@", exception.name, exception.reason]; } }