Skip to content

Commit 90019c4

Browse files
committed
Better errors
1 parent 560f309 commit 90019c4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

bin/plugin/lib/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ async function spawn( command, args, options ) {
6363
} else {
6464
reject(
6565
new Error(
66-
`Process exited with code ${ code }: ${ stderr }`
66+
`Process ${ command } exited with code ${ code }: ${ stderr }`
6767
)
6868
);
6969
}
7070
} );
7171

7272
child.on( 'error', ( error ) => {
73-
reject( error );
73+
reject( `Process ${ command } ended with error: ${ error }` );
7474
} );
7575
} );
7676
}

test/performance/specs/front-end-block-theme.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ test.describe( 'Front End Performance', () => {
4242
// Go to the base URL.
4343
// eslint-disable-next-line playwright/no-networkidle
4444
await page.goto( '/', { waitUntil: 'networkidle' } );
45-
await page.locator( '.oopsie' ).waitFor( { timeout: 1000 } );
4645

4746
// Take the measurements.
4847
const ttfb = await metrics.getTimeToFirstByte();

0 commit comments

Comments
 (0)