mirror of
https://gitee.com/shuto/cordova-imagePicker.git
synced 2026-05-23 00:05:03 +08:00
Pass back the actual error string when an error occurs picking images
This commit is contained in:
@@ -61,7 +61,7 @@ public class ImagePicker extends CordovaPlugin {
|
||||
this.callbackContext.success(res);
|
||||
} else if (resultCode == Activity.RESULT_CANCELED && data != null) {
|
||||
String error = data.getStringExtra("ERRORMESSAGE");
|
||||
this.callbackContext.error("An error occurred loading one of the selected images");
|
||||
this.callbackContext.error(error);
|
||||
} else if (resultCode == Activity.RESULT_CANCELED) {
|
||||
JSONArray res = new JSONArray();
|
||||
this.callbackContext.success(res);
|
||||
|
||||
Reference in New Issue
Block a user