From 1009eeda78f95a8e369d380ee45ca1d96d50db2c Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Sat, 15 Aug 2015 23:07:59 +0200 Subject: [PATCH] [FIX] ajax.js: stringify error for debugging help --- addons/web/static/src/js/framework/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/framework/ajax.js b/addons/web/static/src/js/framework/ajax.js index ce61f225524..444784ef0fd 100644 --- a/addons/web/static/src/js/framework/ajax.js +++ b/addons/web/static/src/js/framework/ajax.js @@ -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;