mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix throwing empty error
This commit is contained in:
parent
803b6df40c
commit
ab4e83771c
@ -172,7 +172,7 @@ if (utils.isElectron()) {
|
||||
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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user