cdp: add more detail to reply error warns

This commit is contained in:
CanadaHonk 2023-04-05 22:44:31 +01:00
parent c4c6799155
commit f36c2a1f06

View File

@ -48,7 +48,7 @@ export default async ({ pipe: { pipeWrite, pipeRead } = {}, port }) => {
}); });
if (reply.error) { if (reply.error) {
log('warn: CDP reply error:', reply.error); log('warn: CDP reply error.', 'method:', method, 'error:', reply.error, '\n' + new Error().stack.split('\n').slice(3).join('\n'));
return new Error(reply.error.message); return new Error(reply.error.message);
} }