[FIX] ajax.js: stringify error for debugging help

This commit is contained in:
Christophe Simonis
2015-08-16 00:51:43 +02:00
parent cf33db868e
commit 1009eeda78
+1 -1
View File
@@ -13,7 +13,7 @@ function genericJsonRpc (fct_name, params, fct) {
var xhr = fct(data);
var result = xhr.pipe(function(result) {
if (result.error !== undefined) {
console.error("Server application error", result.error);
console.error("Server application error", JSON.stringify(result.error));
return $.Deferred().reject("server", result.error);
} else {
return result.result;