fix: pass event.data.err to logErr
This commit is contained in:
parent
7c838b2238
commit
191c3b5f90
|
@ -110,7 +110,7 @@ function handleResponse(event: MessageEvent) {
|
|||
|
||||
// Check if the response is an error.
|
||||
if (event.data.err !== null) {
|
||||
logErr("there's an error in the data");
|
||||
logErr("there's an error in the data", event.data.err);
|
||||
queries[event.data.nonce].resolve([{}, event.data.err]);
|
||||
delete queries[event.data.nonce];
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue