зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1539221 - Fix piping of errors back to the client due to missing formatError symbol. r=ato
Differential Revision: https://phabricator.services.mozilla.com/D25555 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
4b11d72042
Коммит
f0c68a2092
|
@ -8,7 +8,7 @@ var EXPORTED_SYMBOLS = ["Session"];
|
||||||
|
|
||||||
const {ParentProcessDomains} = ChromeUtils.import("chrome://remote/content/domains/ParentProcessDomains.jsm");
|
const {ParentProcessDomains} = ChromeUtils.import("chrome://remote/content/domains/ParentProcessDomains.jsm");
|
||||||
const {Domains} = ChromeUtils.import("chrome://remote/content/domains/Domains.jsm");
|
const {Domains} = ChromeUtils.import("chrome://remote/content/domains/Domains.jsm");
|
||||||
const {formatError} = ChromeUtils.import("chrome://remote/content/Error.jsm");
|
const {RemoteAgentError} = ChromeUtils.import("chrome://remote/content/Error.jsm");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A session represents exactly one client WebSocket connection.
|
* A session represents exactly one client WebSocket connection.
|
||||||
|
@ -71,7 +71,7 @@ class Session {
|
||||||
id,
|
id,
|
||||||
sessionId: this.id,
|
sessionId: this.id,
|
||||||
error: {
|
error: {
|
||||||
message: formatError(error, {stack: true}),
|
message: RemoteAgentError.format(error, {stack: true}),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче