<rdar://problem/13299214>

Make the error message here more interesting for the user

llvm-svn: 183818
This commit is contained in:
Enrico Granata 2013-06-12 00:44:43 +00:00
parent 08470c4b6b
commit aded51daeb
1 changed files with 4 additions and 2 deletions

View File

@ -1698,8 +1698,10 @@ CommandInterpreter::HandleCommand (const char *command_line,
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;