From 76a2c66b3e1685a3f61c279acef92ca10f8af460 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 17 Jun 2019 11:29:36 +0100 Subject: [PATCH] Show what the given context was when it's unknown --- modules/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/config.py b/modules/config.py index 1262aa5a..df6bf350 100644 --- a/modules/config.py +++ b/modules/config.py @@ -139,8 +139,8 @@ class Module(ModuleManager.BaseModule): event["target"], event["user"], context_desc) except ValueError: raise utils.EventError( - "Unknown context. Please provide " - "'user', 'channel', 'server' or 'bot'") + "Unknown context '%s'. Please provide " + "'user', 'channel', 'server' or 'bot'" % context_desc) permission_check = utils.Check("permission", "config")