From b45fd3aebdb851c6fc6caf6b484f87a8007cd49c Mon Sep 17 00:00:00 2001 From: Cookie <52550063+Covkie@users.noreply.github.com> Date: Thu, 4 Jul 2024 14:04:53 -0400 Subject: [PATCH] real error message Co-authored-by: vee --- src/main/appBadge.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/appBadge.ts b/src/main/appBadge.ts index b347e6c..690d6d4 100644 --- a/src/main/appBadge.ts +++ b/src/main/appBadge.ts @@ -26,8 +26,7 @@ export function setBadgeCount(count: number) { switch (process.platform) { case "linux": if (typeof count !== "number") { //sanitize - console.log("what the hel- *kaboom*") - break; + throw new Error("count must be a number"); } function emitDBusBadge(count: number, visible: boolean) {