1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 06:07:37 +02:00

Use correct method to encode a JSON string in failed script result.

This commit is contained in:
Will Stott
2015-03-25 19:47:00 +00:00
parent 9da62199f2
commit f909e3d664

View File

@@ -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) {