From bade64953fb2dccf9a06c8eea5330183649661cd Mon Sep 17 00:00:00 2001 From: Laura Date: Sun, 16 Nov 2025 01:21:09 +0100 Subject: [PATCH] log errors --- static/js/chat.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/static/js/chat.js b/static/js/chat.js index 8c6c1fd..57349d8 100644 --- a/static/js/chat.js +++ b/static/js/chat.js @@ -1255,6 +1255,8 @@ return; } + console.error(err); + callback({ type: "error", data: err.message, @@ -1592,6 +1594,8 @@ return; } + console.error(err); + notify(err); } @@ -2296,6 +2300,8 @@ download("request.json", "application/json", JSON.stringify(dumped.request, null, 4)); } catch (err) { + console.error(err); + notify(err); } @@ -2335,6 +2341,8 @@ $authentication.classList.remove("open"); } catch (err) { + console.error(err); + $authError.textContent = `Error: ${err.message}`; $authentication.classList.add("errored");