Skip to content

Commit

Permalink
Log errors related to JSHandle@object as debug (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
spinillos authored Sep 29, 2022
1 parent cea4f8c commit f8b7512
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/browser/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,8 @@ export class Browser {
}

const loc = msg.location();
if (msgType === 'error') {
this.log.error('Browser console error', 'msg', msg.text(), 'url', loc.url, 'line', loc.lineNumber, 'column', loc.columnNumber);
if (msgType === 'error' && msg.text() !== 'JSHandle@object') {
this.log.error('Browser console error', 'msg', msg.text(), 'url', loc.url, 'line', loc.lineNumber, 'column', loc.columnNumber);
return;
}

Expand Down

0 comments on commit f8b7512

Please sign in to comment.