forked from OSchip/llvm-project
<rdar://problem/13299214>
Make the error message here more interesting for the user llvm-svn: 183818
This commit is contained in:
parent
08470c4b6b
commit
aded51daeb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue