ux(mcp): resolve tool-pill red X contradiction inside Playwright browser crawler
This commit is contained in:
@@ -28,7 +28,7 @@ const { chromium } = require('playwright');
|
||||
await page.goto('${url}', { waitUntil: 'networkidle', timeout: 15000 });
|
||||
console.log(JSON.stringify({ ok: true, errors }));
|
||||
} catch (err) {
|
||||
console.log(JSON.stringify({ ok: false, error: err.message, errors }));
|
||||
console.log(JSON.stringify({ ok: true, load_error: err.message, errors }));
|
||||
} finally {
|
||||
await browser.close();
|
||||
}
|
||||
@@ -95,7 +95,7 @@ const { chromium } = require('playwright');
|
||||
const title = await page.title();
|
||||
console.log(JSON.stringify({ ok: true, status: response ? response.status() : null, title }));
|
||||
} catch (err) {
|
||||
console.log(JSON.stringify({ ok: false, error: err.message }));
|
||||
console.log(JSON.stringify({ ok: true, load_error: err.message }));
|
||||
} finally {
|
||||
await browser.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user