[asterisk-commits] tilghman: trunk r118554 - in /trunk: ./ main/cli.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue May 27 14:21:03 CDT 2008


Author: tilghman
Date: Tue May 27 14:21:03 2008
New Revision: 118554

URL: http://svn.digium.com/view/asterisk?view=rev&rev=118554
Log:
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

........

Modified:
    trunk/   (props changed)
    trunk/main/cli.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/main/cli.c
URL: http://svn.digium.com/view/asterisk/trunk/main/cli.c?view=diff&rev=118554&r1=118553&r2=118554
==============================================================================
--- trunk/main/cli.c (original)
+++ trunk/main/cli.c Tue May 27 14:21:03 2008
@@ -1875,7 +1875,7 @@
 		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;
 	}
 	/*




More information about the asterisk-commits mailing list