mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 06:36:55 +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 {
|
} 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) {
|
||||||
|
Reference in New Issue
Block a user