fix: pass event.data.err to logErr

This commit is contained in:
Derrick Hammer 2023-07-11 17:05:55 -04:00
parent 7c838b2238
commit 191c3b5f90
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ function handleResponse(event: MessageEvent) {
// Check if the response is an error. // Check if the response is an error.
if (event.data.err !== null) { 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]); queries[event.data.nonce].resolve([{}, event.data.err]);
delete queries[event.data.nonce]; delete queries[event.data.nonce];
return; return;