1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-12 17:14:00 +02:00

Merge pull request #291 from willstott101/json_method

Use correct method to encode a JSON string in failed script result.
This commit is contained in:
Dominik Schmidt
2015-03-25 23:35:42 +01:00

View File

@@ -790,7 +790,7 @@ Tomahawk.PluginManager = {
} else { } else {
Tomahawk.reportScriptJobResults({ Tomahawk.reportScriptJobResults({
requestId: requestId, 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) { }, function (error) {