From 7750039f399108c8a39103a1b221ff99e3e8f562 Mon Sep 17 00:00:00 2001 From: Carlos Delgado Date: Thu, 9 Jun 2016 16:42:44 +0200 Subject: [PATCH] Final commit --- src/android/OurCodeWorldpreventscreenshots.java | 4 ++-- www/ourcodeworldpreventscreenshots.js | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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; }