Modify PluginResult(status) so it generates a JSON string that works with JSON.parse()

This commit is contained in:
macdonst 2012-07-06 17:39:04 -04:00
parent eb0348d47c
commit 401c2f42f9

View File

@ -29,7 +29,7 @@ public class PluginResult {
public PluginResult(Status status) { public PluginResult(Status status) {
this.status = status.ordinal(); this.status = status.ordinal();
this.message = "'" + PluginResult.StatusMessages[this.status] + "'"; this.message = "\"" + PluginResult.StatusMessages[this.status] + "\"";
} }
public PluginResult(Status status, String message) { public PluginResult(Status status, String message) {