fix throwing empty error

pull/255/head
zadam 2023-11-04 22:53:09 +07:00
parent 803b6df40c
commit ab4e83771c
1 changed files with 1 additions and 1 deletions

@ -172,7 +172,7 @@ if (utils.isElectron()) {
await reportError(arg.method, arg.url, arg.statusCode, arg.body); await reportError(arg.method, arg.url, arg.statusCode, arg.body);
} }
idToRequestMap[arg.requestId].reject(); idToRequestMap[arg.requestId].reject(new Error(`Server responded with ${arg.statusCode}`));
} }
delete idToRequestMap[arg.requestId]; delete idToRequestMap[arg.requestId];