Show what the given context was when it's unknown

This commit is contained in:
jesopo 2019-06-17 11:29:36 +01:00
parent 99a314ed01
commit 76a2c66b3e

View file

@ -139,8 +139,8 @@ class Module(ModuleManager.BaseModule):
event["target"], event["user"], context_desc) event["target"], event["user"], context_desc)
except ValueError: except ValueError:
raise utils.EventError( raise utils.EventError(
"Unknown context. Please provide " "Unknown context '%s'. Please provide "
"'user', 'channel', 'server' or 'bot'") "'user', 'channel', 'server' or 'bot'" % context_desc)
permission_check = utils.Check("permission", "config") permission_check = utils.Check("permission", "config")