[FIX] web: correctly retrieve exception from @serialize_exception
and _serialize_exception as well.
This commit is contained in:
parent
5065d5f5b0
commit
560f2359a0
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue