diff --git a/src/android/OurCodeWorldpreventscreenshots.java b/src/android/OurCodeWorldpreventscreenshots.java index 875a0cc..08bad5d 100644 --- a/src/android/OurCodeWorldpreventscreenshots.java +++ b/src/android/OurCodeWorldpreventscreenshots.java @@ -25,7 +25,7 @@ public class OurCodeWorldpreventscreenshots extends CordovaPlugin { result.setKeepCallback(true); callbacks.sendPluginResult(result); }catch(Exception e){ - PluginResult result = new PluginResult(PluginResult.Status.ERROR, ""); + PluginResult result = new PluginResult(PluginResult.Status.ERROR, e.getMessage()); result.setKeepCallback(true); callbacks.sendPluginResult(result); } @@ -43,7 +43,7 @@ public class OurCodeWorldpreventscreenshots extends CordovaPlugin { result.setKeepCallback(true); callbacks.sendPluginResult(result); }catch(Exception e){ - PluginResult result = new PluginResult(PluginResult.Status.ERROR, ""); + PluginResult result = new PluginResult(PluginResult.Status.ERROR, e.getMessage()); result.setKeepCallback(true); callbacks.sendPluginResult(result); } diff --git a/www/ourcodeworldpreventscreenshots.js b/www/ourcodeworldpreventscreenshots.js index e5df38a..52d3b10 100644 --- a/www/ourcodeworldpreventscreenshots.js +++ b/www/ourcodeworldpreventscreenshots.js @@ -35,7 +35,6 @@ return isEnabled; }; - return core; }