non-intrusive logging of sync errors

This commit is contained in:
zadam
2020-07-01 21:33:52 +02:00
parent bf073690e0
commit f0b608ddec
5 changed files with 13 additions and 19 deletions

View File

@@ -244,7 +244,8 @@ function timeLimit(promise, limitMs) {
resolved = true;
res(result);
});
})
.catch(error => rej(error));
setTimeout(() => {
if (!resolved) {