From 99236b46546328a2f2d65202e5c243b63bfa7d18 Mon Sep 17 00:00:00 2001 From: yaw Date: Thu, 18 Jul 2019 17:25:51 +0800 Subject: [PATCH] ios erro log --- package.json | 2 +- plugin.xml | 2 +- src/ios/MediaPicker.m | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index ff00d51..ed078c6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-mediapicker-dmcsdk", - "version": "2.4.5", + "version": "2.4.6", "description": "android ios mediaPicker support selection of multiple image and video", "cordova": { "id": "cordova-plugin-mediapicker-dmcsdk", diff --git a/plugin.xml b/plugin.xml index 4fde6e1..4614f23 100644 --- a/plugin.xml +++ b/plugin.xml @@ -1,6 +1,6 @@ - + MediaPicker diff --git a/src/ios/MediaPicker.m b/src/ios/MediaPicker.m index fe4f941..f71938e 100644 --- a/src/ios/MediaPicker.m +++ b/src/ios/MediaPicker.m @@ -170,7 +170,8 @@ [exportSession exportAsynchronouslyWithCompletionHandler:^{ if (exportSession.status == AVAssetExportSessionStatusFailed) { - [self.commandDelegate sendPluginResult:[CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:@"compress failed"] callbackId:callbackId]; + NSString * errorString = [NSString stringWithFormat:@"videoToSandboxCompress failed %@",exportSession.error]; + [self.commandDelegate sendPluginResult:[CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:errorString] callbackId:callbackId]; NSLog(@"failed"); } else if(exportSession.status == AVAssetExportSessionStatusCompleted){