More informative message on invalid commands.
authorLuigi Rizzo <rizzo@icir.org>
Tue, 28 Nov 2006 09:43:44 +0000 (09:43 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Tue, 28 Nov 2006 09:43:44 +0000 (09:43 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48079 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/manager.c

index 5a852bf..6ffa290 100644 (file)
@@ -2000,7 +2000,7 @@ static int process_message(struct mansession *s, struct message *m)
                }
        }
        if (!tmp)
-               astman_send_error(s, m, "Invalid/unknown command");
+               astman_send_error(s, m, "Invalid/unknown command. Use Action: ListCommands to show available commands.");
        if (ret)
                return ret;
        /* Once done with our message, deliver any pending events */