Skip to content
Permalink
Browse files
fix(android): return exception message (where it exists) (#687)
Co-authored-by: エリス <erisu@users.noreply.github.com>
Co-authored-by: jcesarmobile <jcesarmobile@gmail.com>
  • Loading branch information
3 people committed Aug 11, 2021
1 parent c7971d9 commit e9db20e381e0e60baa14664543271d094f79e91c
Showing 1 changed file with 3 additions and 3 deletions.
@@ -762,7 +762,7 @@ else if (destType == FILE_URI) {

} catch (Exception e) {
e.printStackTrace();
this.failPicture("Error retrieving image.");
this.failPicture("Error retrieving image: "+e.getLocalizedMessage());
}
} else {
this.callbackContext.success(finalLocation);
@@ -844,7 +844,7 @@ else if (srcType == CAMERA) {
}
} catch (IOException e) {
e.printStackTrace();
this.failPicture("Error capturing image.");
this.failPicture("Error capturing image: "+e.getLocalizedMessage());
}
}

@@ -1277,7 +1277,7 @@ public void processPicture(Bitmap bitmap, int encodingType) {
code = null;
}
} catch (Exception e) {
this.failPicture("Error compressing image.");
this.failPicture("Error compressing image: "+e.getLocalizedMessage());
}
jpeg_data = null;
}

0 comments on commit e9db20e

Please sign in to comment.