Don't print two errors for unknown commands.
authorRaphael Isemann <teemperor@gmail.com>
Thu, 26 Jul 2018 16:32:05 +0000 (16:32 +0000)
committerRaphael Isemann <teemperor@gmail.com>
Thu, 26 Jul 2018 16:32:05 +0000 (16:32 +0000)
commit6fcc7d703b571f456f662a0be1ec6f449d55fdb9
tree2203ff4702fcedaf0514346ba877b2b3e697a75a
parent4dd7558fab0da7889c1e31bcc741880d0e6cbb52
Don't print two errors for unknown commands.

Summary:
We always print two error messages when we hit an unknown command. As the function
`CommandInterpreter::HandleCommand` that prints the second error message unconditionally called the `CommandInterpreter::ResolveCommandImpl` before (which prints the first error message), we can just remove
that second error message.

Fixes https://bugs.llvm.org/show_bug.cgi?id=38312

Reviewers: labath

Reviewed By: labath

Subscribers: labath, lldb-commits

Differential Revision: https://reviews.llvm.org/D49831

llvm-svn: 338040
lldb/packages/Python/lldbsuite/test/functionalities/wrong_commands/.categories [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/wrong_commands/TestWrongCommands.py [new file with mode: 0644]
lldb/source/Interpreter/CommandInterpreter.cpp