Final commit

This commit is contained in:
Carlos Delgado 2016-06-09 16:42:44 +02:00
parent a64b67faa4
commit 7750039f39
2 changed files with 2 additions and 3 deletions

View File

@ -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);
}

View File

@ -35,7 +35,6 @@
return isEnabled;
};
return core;
}