From a3987a655ec3563ba95cea944c503296d9ffccae Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 8 Mar 2021 15:35:34 +0100 Subject: [PATCH] log if a connection error is a timeout --- src/matrix/net/HomeServerApi.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/matrix/net/HomeServerApi.js b/src/matrix/net/HomeServerApi.js index 3ac0748f..7748ee23 100644 --- a/src/matrix/net/HomeServerApi.js +++ b/src/matrix/net/HomeServerApi.js @@ -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; }