From 0163f5431165993803f983ff22c015e89c6c355a Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Fri, 22 Oct 2010 17:45:27 +1100 Subject: [PATCH] Give a better error message when no arg is specified for :volume. --- melodactyl/content/player.js | 1 + 1 file changed, 1 insertion(+) diff --git a/melodactyl/content/player.js b/melodactyl/content/player.js index 000de83a..df3bf825 100644 --- a/melodactyl/content/player.js +++ b/melodactyl/content/player.js @@ -616,6 +616,7 @@ const Player = Module("player", { function (args) { let arg = args[0]; + dactyl.assert(arg, "E471: Argument required"); dactyl.assert(/^[+-]?\d+$/.test(arg), "E488: Trailing characters"); let level = parseInt(arg, 10) / 100;