log if a connection error is a timeout

This commit is contained in:
Bruno Windels 2021-03-08 15:35:34 +01:00
parent cd4175c559
commit a3987a655e

View File

@ -46,6 +46,9 @@ class RequestWrapper {
log?.catch(err);
throw err;
} else {
if (err.name === "ConnectionError") {
log?.set("timeout", err.isTimeout);
}
log?.catch(err);
throw err;
}