From aaf42a7f60e3d17a3a2fa69cd025ce67d3ea59dc Mon Sep 17 00:00:00 2001 From: Contributor Date: Sun, 11 Jan 2026 23:22:28 +0530 Subject: [PATCH] fix: add error logging to empty catch block in keymap.ts --- frontend/src/ts/elements/keymap.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/ts/elements/keymap.ts b/frontend/src/ts/elements/keymap.ts index 25155e8401a6..72f655d607c1 100644 --- a/frontend/src/ts/elements/keymap.ts +++ b/frontend/src/ts/elements/keymap.ts @@ -136,7 +136,11 @@ async function flashKey(key: string, correct?: boolean): Promise { duration: 250, easing: "out(5)", }); - } catch (e) {} + } catch (e) { + if (e instanceof Error) { + console.log("could not flash keymap key: " + e.message); + } + } }); }