Skip to content

Commit

Permalink
fix(resultForVideo): pass exception message to cordova callback
Browse files Browse the repository at this point in the history
  • Loading branch information
guimarca committed Apr 12, 2020
1 parent 6f06bef commit 3cf3cf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ios/CDVCamera.m
Original file line number Diff line number Diff line change
Expand Up @@ -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]];
}
}

Expand Down

0 comments on commit 3cf3cf5

Please sign in to comment.