[Lldb-commits] [lldb] r183818 - <rdar://problem/13299214>
Enrico Granata
egranata at apple.com
Tue Jun 11 17:44:43 PDT 2013
Author: enrico
Date: Tue Jun 11 19:44:43 2013
New Revision: 183818
URL: http://llvm.org/viewvc/llvm-project?rev=183818&view=rev
Log:
<rdar://problem/13299214>
Make the error message here more interesting for the user
Modified:
lldb/trunk/source/Interpreter/CommandInterpreter.cpp
Modified: lldb/trunk/source/Interpreter/CommandInterpreter.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/CommandInterpreter.cpp?rev=183818&r1=183817&r2=183818&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/CommandInterpreter.cpp (original)
+++ lldb/trunk/source/Interpreter/CommandInterpreter.cpp Tue Jun 11 19:44:43 2013
@@ -1698,8 +1698,10 @@ CommandInterpreter::HandleCommand (const
if (!suffix.empty())
{
- result.AppendErrorWithFormat ("multi-word commands ('%s') can't have shorthand suffixes: '%s'\n",
- next_word.c_str(),
+ result.AppendErrorWithFormat ("command '%s' did not recognize '%s%s%s' as valid (subcommand might be invalid).\n",
+ cmd_obj->GetCommandName(),
+ next_word.empty() ? "" : next_word.c_str(),
+ next_word.empty() ? " -- " : " ",
suffix.c_str());
result.SetStatus (eReturnStatusFailed);
return false;
More information about the lldb-commits
mailing list