From f909e3d664ea2c9813bb04757194f1d05475ea91 Mon Sep 17 00:00:00 2001 From: Will Stott Date: Wed, 25 Mar 2015 19:47:00 +0000 Subject: [PATCH] Use correct method to encode a JSON string in failed script result. --- data/js/tomahawk.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/js/tomahawk.js b/data/js/tomahawk.js index 62e105c77..dd02c56b8 100644 --- a/data/js/tomahawk.js +++ b/data/js/tomahawk.js @@ -790,7 +790,7 @@ Tomahawk.PluginManager = { } else { Tomahawk.reportScriptJobResults({ requestId: requestId, - error: "Scripts need to return objects for requests: methodName: " + methodName + " params: " + JSON.encode(params) + error: "Scripts need to return objects for requests: methodName: " + methodName + " params: " + JSON.stringify(params) }); } }, function (error) {