forked from mystiq/hydrogen-web
log if a connection error is a timeout
This commit is contained in:
parent
cd4175c559
commit
a3987a655e
1 changed files with 3 additions and 0 deletions
|
@ -46,6 +46,9 @@ class RequestWrapper {
|
||||||
log?.catch(err);
|
log?.catch(err);
|
||||||
throw err;
|
throw err;
|
||||||
} else {
|
} else {
|
||||||
|
if (err.name === "ConnectionError") {
|
||||||
|
log?.set("timeout", err.isTimeout);
|
||||||
|
}
|
||||||
log?.catch(err);
|
log?.catch(err);
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue