Skip to content

Commit

Permalink
improved badge argument non integer error message
Browse files Browse the repository at this point in the history
  • Loading branch information
rafapaezbas committed Nov 20, 2024
1 parent d2516ae commit bd4e4c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class API {
exit = (code) => program.exit(code)

badge = (count) => {
if (!Number.isInteger(+count)) throw new Error('argument is not an integer')
if (!Number.isInteger(+count)) throw new Error('argument must be an integer')
return this.#ipc.badge(count)
}
}
Expand Down

0 comments on commit bd4e4c4

Please sign in to comment.