Skip to content

Commit d3b8446

Browse files
committed
test: test without closed error handling
1 parent f415c3e commit d3b8446

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/browser.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,7 @@ export async function launch(options: McpLaunchOptions): Promise<Browser> {
142142
} catch (error) {
143143
if (
144144
userDataDir &&
145-
((error as Error).message.includes('The browser is already running') ||
146-
(error as Error).message.includes('Target closed') ||
147-
(error as Error).message.includes('Connection closed'))
145+
(error as Error).message.includes('The browser is already running')
148146
) {
149147
throw new Error(
150148
`The browser is already running for ${userDataDir}. Use --isolated to run multiple browser instances.`,

0 commit comments

Comments
 (0)