From 3e82a519b05873dd9bac17d239cd518867929d92 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Tue, 27 May 2008 19:22:03 +0000 Subject: [PATCH] Merged revisions 118554 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ................ r118554 | tilghman | 2008-05-27 14:21:03 -0500 (Tue, 27 May 2008) | 14 lines Merged revisions 118551 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r118551 | tilghman | 2008-05-27 14:15:27 -0500 (Tue, 27 May 2008) | 6 lines When showing an error message for a command, don't shorten the command output, 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.6.0@118555 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/cli.c b/main/cli.c index 11d6671d82..fa9bdfabc2 100644 --- a/main/cli.c +++ b/main/cli.c @@ -1875,7 +1875,7 @@ int ast_cli_command(int fd, const char *s) ast_atomic_fetchadd_int(&e->inuse, 1); AST_RWLIST_UNLOCK(&helpers); if (e == NULL) { - ast_cli(fd, "No such command '%s' (type 'help' for help)\n", find_best(args + 1)); + ast_cli(fd, "No such command '%s' (type 'help %s' for other possible commands)\n", s, find_best(args + 1)); goto done; } /*