show error on unknown !alias subcommand

This commit is contained in:
jesopo 2019-11-20 12:02:51 +00:00
parent 84b77b5cb9
commit cb111f0c93

View file

@ -112,3 +112,6 @@ class Module(ModuleManager.BaseModule):
target.del_setting(setting) target.del_setting(setting)
event["stdout"].write("Removed '%s' alias" % alias) event["stdout"].write("Removed '%s' alias" % alias)
else:
raise utils.EventError("Unknown subcommand '%s'" % subcommand)