mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1215502: Send wrapped WebDriverError to client r=automatedtester
This fixes serialisation of XPCOM exceptions to the client. Response.sendError was incorrectly serialising the err input variable instead of the wrapped WebDriverError, we. r=dburns
This commit is contained in:
parent
0f68d9cf37
commit
89d5773116
@ -257,7 +257,7 @@ this.Response = class {
|
||||
let wd = error.isWebDriverError(err);
|
||||
let we = wd ? err : new WebDriverError(err.message);
|
||||
|
||||
this.error = error.toJson(err);
|
||||
this.error = error.toJson(we);
|
||||
this.body = null;
|
||||
this.send();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user