cdp: add more detail to reply error warns
This commit is contained in:
parent
c4c6799155
commit
f36c2a1f06
@ -48,7 +48,7 @@ export default async ({ pipe: { pipeWrite, pipeRead } = {}, port }) => {
|
||||
});
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user