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:
Alexandre Poirot 2019-04-04 11:16:23 +00:00
Родитель 4b11d72042
Коммит f0c68a2092
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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}),
}, },
}); });
} }