mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 03:44:10 +01:00
Fix cryptic error message with certain :set args.
--HG-- extra : rebase_source : f555e2cb98bea80fd1090cae6199371f0ca997ed
This commit is contained in:
@@ -1082,6 +1082,7 @@ var Options = Module("options", {
|
||||
|
||||
let opt = modules.options.parseOpt(arg, modifiers);
|
||||
util.assert(opt, _("command.set.errorParsing", arg));
|
||||
util.assert(!opt.error, _("command.set.errorParsing", opt.error));
|
||||
|
||||
let option = opt.option;
|
||||
util.assert(option != null || opt.all, _("command.set.unknownOption", opt.name));
|
||||
|
||||
Reference in New Issue
Block a user