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:
Andreas Tolfsen 2016-01-07 14:41:11 +00:00
parent 0f68d9cf37
commit 89d5773116

View File

@ -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();