Skip to content

Commit 9b66430

Browse files
committed
fix(resultForVideo): expection reason
1 parent 6dce381 commit 9b66430

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ios/CDVCamera.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -516,8 +516,8 @@ - (CDVPluginResult*)resultForVideo:(NSDictionary*)info
516516
NSString* moviePath = [[info objectForKey:UIImagePickerControllerMediaURL] absoluteString];
517517
return [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:moviePath];
518518
} @catch (NSException *exception) {
519-
NSLog(@"Camera.resultForVideo: error retrieving file path. Original exception: %@: %@", exception.name, exception.reason);
520-
return CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:[@"%@: %@", exception.name, exception.reason];
519+
NSLog(@"Camera.resultForVideo: error retrieving file path");
520+
return [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:[exception reason]];
521521
}
522522
}
523523

0 commit comments

Comments
 (0)