[FIX] web: correctly retrieve exception from @serialize_exception

and _serialize_exception as well.
This commit is contained in:
Denis Ledoux
2015-01-21 17:03:54 +01:00
parent 5065d5f5b0
commit 560f2359a0
+2 -1
View File
@@ -445,7 +445,8 @@ instance.web.Session.include( /** @lends instance.web.Session# */{
try {
if (options.error) {
var body = this.contentDocument.body;
var node = body.childNodes[1] || body.childNodes[0];
var nodes = body.children.length === 0 ? body.childNodes : body.children;
var node = nodes[1] || nodes[0];
options.error(JSON.parse(node.textContent));
}
} finally {