]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
config_options.c: Improve misleading warning.
authorNaveen Albert <asterisk@phreaknet.org>
Tue, 30 Sep 2025 20:57:58 +0000 (16:57 -0400)
committerNaveen Albert <asterisk@phreaknet.org>
Thu, 2 Oct 2025 14:43:00 +0000 (14:43 +0000)
When running "config show help <module>", if no XML documentation exists
for the specified module, "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

index 631b0b567a170a0937ce1b7c136c947d23496205..40d21f7b6485873cf9742564aab11593ad58c946 100644 (file)
@@ -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;
        }