add logging

This commit is contained in:
Max Schmitt 2024-07-01 18:52:15 +02:00
parent a7b0496d44
commit 8f67ee12f8

View file

@ -116,7 +116,8 @@ export class ElectronApplication extends ChannelOwner<channels.ElectronApplicati
} }
async close() { 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> { async waitForEvent(event: string, optionsOrPredicate: WaitForEventOptions = {}): Promise<any> {