Skip to content

Commit e081ba7

Browse files
authored
chore: improve error message (#2222)
1 parent d611ca9 commit e081ba7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browserContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export abstract class BrowserContextBase extends ExtendedEventEmitter implements
172172
await pages[0].waitForLoadState();
173173
if (pages.length !== 1 || pages[0].url() !== 'about:blank') {
174174
await this.close().catch(e => null);
175-
throw new Error('Arguments can not specify page to be opened');
175+
throw new Error(`Arguments can not specify page to be opened (first url is ${pages[0].url()})`);
176176
}
177177
}
178178
}

0 commit comments

Comments
 (0)