]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
When showing an error message for a command, don't shorten the command output,
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 27 May 2008 19:15:27 +0000 (19:15 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 27 May 2008 19:15:27 +0000 (19:15 +0000)
as it tends to confuse the user (it's fine for suggesting other commands,
however).
 Reported by: seanbright (on #asterisk-dev)
 Fixed by: me

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@118551 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/cli.c

index 2ecf20a3dea1e6366b579d144ce89cdf824ca61c..36f20a511bd140d7b39793664950194a26028129 100644 (file)
@@ -2010,7 +2010,7 @@ int ast_cli_command(int fd, const char *s)
                                break;
                        }
                } else 
-                       ast_cli(fd, "No such command '%s' (type 'help' for help)\n", find_best(argv));
+                       ast_cli(fd, "No such command '%s' (type 'help %s' for other possible commands)\n", s, find_best(argv));
                if (e)
                        ast_atomic_fetchadd_int(&e->inuse, -1);
        }