1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-08 17:44:14 +01:00

Give a better error message when no arg is specified for :volume.

This commit is contained in:
Doug Kearns
2010-10-22 17:45:27 +11:00
parent b3d55f51f9
commit 0163f54311

View File

@@ -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;