jcesarmobile commented on a change in pull request #687:
URL: 
https://github.com/apache/cordova-plugin-camera/pull/687#discussion_r538443674



##########
File path: src/android/CameraLauncher.java
##########
@@ -829,7 +829,7 @@ else if (srcType == CAMERA) {
                     }
                 } catch (IOException e) {
                     e.printStackTrace();
-                    this.failPicture("Error capturing image.");
+                    this.failPicture("Error capturing image: "+e.getMessage());

Review comment:
       ```suggestion
                       this.failPicture("Error capturing image: 
"+e.getLocalizedMessage());
   ```

##########
File path: src/android/CameraLauncher.java
##########
@@ -759,7 +759,7 @@ else if (destType == FILE_URI) {
 
                             } catch (Exception e) {
                                 e.printStackTrace();
-                                this.failPicture("Error retrieving image.");
+                                this.failPicture("Error retrieving image: 
"+e.getMessage());

Review comment:
       ```suggestion
                                   this.failPicture("Error retrieving image: 
"+e.getLocalizedMessage());
   ```

##########
File path: src/android/CameraLauncher.java
##########
@@ -1268,7 +1268,7 @@ public void processPicture(Bitmap bitmap, int 
encodingType) {
                 code = null;
             }
         } catch (Exception e) {
-            this.failPicture("Error compressing image.");
+            this.failPicture("Error compressing image: "+e.getMessage());

Review comment:
       ```suggestion
               this.failPicture("Error compressing image: 
"+e.getLocalizedMessage());
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to