Skip to content

Commit

Permalink
add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Jul 1, 2024
1 parent a7b0496 commit 8f67ee1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/playwright-core/src/client/electron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ export class ElectronApplication extends ChannelOwner<channels.ElectronApplicati
}

async close() {
await this._context.close().catch(() => {});
// eslint-disable-next-line no-console
await this._context.close().catch(error => console.error(error));
}

async waitForEvent(event: string, optionsOrPredicate: WaitForEventOptions = {}): Promise<any> {
Expand Down

0 comments on commit 8f67ee1

Please sign in to comment.