Skip to content

Commit

Permalink
suppress logging too, phetsims/aqua#143
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jun 1, 2022
1 parent 34bcd56 commit e116e74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/common/puppeteerLoad.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ module.exports = async function( url, options ) {
resolve( new Error( error ) );
} );
page.on( 'pageerror', error => {
winston.info( `puppeteer pageerror: ${error}` );
if ( options.resolvePageErrors ) {
winston.info( `puppeteer pageerror: ${error}` );
resolve( new Error( error ) );
}
} );
Expand Down

0 comments on commit e116e74

Please sign in to comment.