mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
log if a connection error is a timeout
This commit is contained in:
parent
cd4175c559
commit
a3987a655e
@ -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 New Issue
Block a user