diff --git a/modules/config.py b/modules/config.py index 7917479b..6ba49c71 100644 --- a/modules/config.py +++ b/modules/config.py @@ -169,7 +169,12 @@ class Module(ModuleManager.BaseModule): try: result = self._config(export_settings, target, setting, value) except ConfigInvalidValue: - raise utils.EventError("Invalid value") + example = setting_info.get("example", None) + if not example == None: + raise utils.EventError("Invalid value. Example: %s" % + example) + else: + raise utils.EventError("Invalid value") except ConfigSettingInexistent: raise utils.EventError("Setting not set")