diff --git a/lighthouse-core/lib/lh-error.js b/lighthouse-core/lib/lh-error.js index e7d71d8a2429..11692a73da53 100644 --- a/lighthouse-core/lib/lh-error.js +++ b/lighthouse-core/lib/lh-error.js @@ -120,10 +120,7 @@ class LighthouseError extends Error { // if we find one, use the friendly LighthouseError definition const matchedErrorDefinition = protocolErrors.find(e => e.pattern.test(protocolError.message)); if (matchedErrorDefinition) { - return new LighthouseError(matchedErrorDefinition, { - protocolMethod: method, - protocolError: protocolError.message, - }); + return new LighthouseError(matchedErrorDefinition); } // otherwise fallback to building a generic Error