Skip to content

Commit

Permalink
core: fix icu error thrown while throwing protocol error (#9935)
Browse files Browse the repository at this point in the history
  • Loading branch information
brendankenny authored Nov 6, 2019
1 parent 91531d6 commit d53284c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lighthouse-core/lib/lh-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d53284c

Please sign in to comment.