[FIX] web: correctly retrieve exception from @serialize_exception
and _serialize_exception as well.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user