Show what the given context was when it's unknown
This commit is contained in:
parent
99a314ed01
commit
76a2c66b3e
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue