Skip to content

Commit

Permalink
Fix sourcemap reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Dec 9, 2016
1 parent 9c080f1 commit c9137d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lighthouse-extension/app/src/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ document.addEventListener('DOMContentLoaded', _ => {
let qsBody = '**Lighthouse Version**: ' + getLighthouseVersion() + '\n';
qsBody += '**Chrome Version**: ' + getChromeVersion() + '\n';
qsBody += '**Error Message**: ' + err.message + '\n';
qsBody += '**Stack Trace**:\n ```' + err.stack.join('\n') + '```';
qsBody += '**Stack Trace**:\n ```' + err.stack + '\n```';

const base = 'https://github.com/googlechrome/lighthouse/issues/new?';
let titleError = err.message;
Expand Down Expand Up @@ -134,7 +134,7 @@ document.addEventListener('DOMContentLoaded', _ => {
}).catch(err => Promise.resolve(err.stack));

stackTracePromise.then(stack => {
err.stack = stack;
err.stack = stack.join('\n');

feedbackEl.textContent = message;

Expand All @@ -143,7 +143,7 @@ document.addEventListener('DOMContentLoaded', _ => {
feedbackEl.appendChild(buildReportErrorLink(err));
}

background.console.error(err);
background.console.error(err.message + '\n' + err.stack);
});
}

Expand Down

0 comments on commit c9137d7

Please sign in to comment.