From 548717b219b23ae7e96cb9e06327a48b2aa28675 Mon Sep 17 00:00:00 2001 From: Naveen Albert Date: Tue, 30 Sep 2025 16:57:58 -0400 Subject: [PATCH] config_options.c: Improve misleading warning. When running "config show help ", if no XML documentation exists for the specified module, "Module not found." is returned, which is misleading if the module is loaded but simply has no XML documentation for its config. Improve the message to clarify that the module may simply have no config documentation. Resolves: #1489 --- main/config_options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/config_options.c b/main/config_options.c index 631b0b567a..40d21f7b64 100644 --- a/main/config_options.c +++ b/main/config_options.c @@ -1239,7 +1239,7 @@ static void cli_show_module_types(struct ast_cli_args *a) ast_assert(a->argc == 4); if (!(item = ao2_find(xmldocs, a->argv[3], OBJ_KEY))) { - ast_cli(a->fd, "Module %s not found.\n", a->argv[3]); + ast_cli(a->fd, "Module %s not found or has no config XML documentation.\n", a->argv[3]); return; }