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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user