Bug 1445011: Include sourceName in error report payload. r=Gijs

The module attribute for an exception is surfaced in Sentry as the "transaction"
tag, and is useful for errors that don't include stack traces.

Differential Revision: https://phabricator.services.mozilla.com/D727

MozReview-Commit-ID: JKwgmE2jBXB

--HG--
extra : rebase_source : af817b5709e5b596885cc1674bcaaf7f96a0a48f
extra : amend_source : 8b7820ca53c29429ea9d788b1cf84012c99fdf81
This commit is contained in:
Michael Kelly 2018-03-14 09:45:35 -07:00
parent a1747f6179
commit cf25d3e972
2 changed files with 2 additions and 0 deletions

View File

@ -170,6 +170,7 @@ class BrowserErrorReporter {
{
type: errorName,
value: errorMessage,
module: message.sourceName,
stacktrace: {
frames,
}

View File

@ -366,6 +366,7 @@ add_task(async function testFetchArguments() {
{
type: "Error",
value: "testFetchArguments error",
module: testPageUrl,
stacktrace: {
frames: [
{