Skip to content

Commit

Permalink
Better errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnajdr committed Jun 5, 2024
1 parent 560f309 commit 90019c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/plugin/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ async function spawn( command, args, options ) {
} else {
reject(
new Error(
`Process exited with code ${ code }: ${ stderr }`
`Process ${ command } exited with code ${ code }: ${ stderr }`
)
);
}
} );

child.on( 'error', ( error ) => {
reject( error );
reject( `Process ${ command } ended with error: ${ error }` );
} );
} );
}
Expand Down
1 change: 0 additions & 1 deletion test/performance/specs/front-end-block-theme.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ test.describe( 'Front End Performance', () => {
// Go to the base URL.
// eslint-disable-next-line playwright/no-networkidle
await page.goto( '/', { waitUntil: 'networkidle' } );
await page.locator( '.oopsie' ).waitFor( { timeout: 1000 } );

// Take the measurements.
const ttfb = await metrics.getTimeToFirstByte();
Expand Down

0 comments on commit 90019c4

Please sign in to comment.