Pass back the actual error string when an error occurs picking images

This commit is contained in:
CSullivan102
2014-09-04 09:39:50 -04:00
parent 9ed29afefd
commit 1f60a6dd08
@@ -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);