This commit is contained in:
Matt Van Horn 2026-07-14 19:17:08 -07:00 committed by GitHub
commit adbe3f4ac5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 1 deletions

View File

@ -279,8 +279,14 @@ export async function importCookies(
const cookie = toPlaywrightCookie(row, value);
cookies.push(cookie);
domainCounts[row.host_key] = (domainCounts[row.host_key] || 0) + 1;
} catch {
} catch (err: any) {
failed++;
if (process.env.GSTACK_DEBUG === '1' || process.env.DEBUG === '1') {
const code = err?.code ? ` [${err.code}]` : '';
console.error(
`[cookie-import] decrypt failed for ${row.host_key}/${row.name}${code}: ${err?.message ?? String(err)}`
);
}
}
}