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) {