From 0dc2bcf218ff8154875bfdfa19551304f5a874f7 Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Mon, 12 Sep 2011 18:03:26 +0200 Subject: [PATCH] [fix] problem with some server errors that have a fault_code which is an int bzr revid: nicolas.vanhoren@openerp.com-20110912160326-c8ayrno6x6appzuv --- addons/web/static/src/js/chrome.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index 86c27e6952b..c12d157a668 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -150,7 +150,7 @@ openerp.web.CrashManager = openerp.web.Dialog.extend(/** @lends openerp.web.Cras on_rpc_error: function(error) { this.error = error; if (error.data.fault_code) { - var split = error.data.fault_code.split('\n')[0].split(' -- '); + var split = ("" + error.data.fault_code).split('\n')[0].split(' -- '); if (split.length > 1) { error.type = split.shift(); error.data.fault_code = error.data.fault_code.substr(error.type.length + 4);