Browse Source

Android: print stack trace on exception in generic failure case

Gaëtan Renaudeau 8 years ago
parent
commit
fe167f0a25

+ 1
- 0
android/src/main/java/fr/greweb/reactnativeviewshot/ViewShot.java View File

89
             }
89
             }
90
         }
90
         }
91
         catch (Exception e) {
91
         catch (Exception e) {
92
+            e.printStackTrace();
92
             promise.reject(ERROR_UNABLE_TO_SNAPSHOT, "Failed to capture view snapshot");
93
             promise.reject(ERROR_UNABLE_TO_SNAPSHOT, "Failed to capture view snapshot");
93
         }
94
         }
94
         finally {
95
         finally {