Skip to content

Commit 2f83fa6

Browse files
committed
addressed review comments: fixed quotes to be consistent. added missing space
1 parent b01e120 commit 2f83fa6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lldb/source/Commands/CommandObjectMultiword.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ void CommandObjectMultiword::Execute(const char *args_string,
210210
} else {
211211
// Try to offer some alternatives to help correct the command.
212212
error_msg.assign(
213-
llvm::Twine("'" + sub_command + "' is not a valid subcommand of \"" +
213+
llvm::Twine("\"" + sub_command + "\" is not a valid subcommand of \"" +
214214
GetCommandName() + "\"." + GetSubcommandsHintText() +
215215
" Use \"help " + GetCommandName() + "\" to find out more.")
216216
.str());
@@ -225,7 +225,7 @@ std::string CommandObjectMultiword::GetSubcommandsHintText() {
225225
const size_t maxCount = 5;
226226
size_t i = 0;
227227
std::string buffer = " Valid subcommand";
228-
buffer.append(m_subcommand_dict.size() > 1 ? "s are:" : "is");
228+
buffer.append(m_subcommand_dict.size() > 1 ? "s are:" : " is");
229229
CommandMap::iterator pos;
230230
for (pos = m_subcommand_dict.begin();
231231
pos != m_subcommand_dict.end() && i < maxCount; ++pos, ++i) {

lldb/test/Shell/Commands/command-wrong-subcommand-error-msg.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# RUN: not %lldb -b -o 'breakpoint foo' %t.out -o exit 2>&1 | FileCheck %s --check-prefix BP-MSG
55
# RUN: not %lldb -b -o 'watchpoint set foo' %t.out -o exit 2>&1 | FileCheck %s --check-prefix WP-MSG
66
# CHECK: at main.c:2:21
7-
# BP-MSG: 'foo' is not a valid subcommand of "breakpoint". Valid subcommands are: clear, command, delete, disable, enable, and others. Use "help breakpoint" to find out more.
8-
# WP-MSG: 'foo' is not a valid subcommand of "watchpoint set". Valid subcommands are: expression, variable. Use "help watchpoint set" to find out more.
7+
# BP-MSG: "foo" is not a valid subcommand of "breakpoint". Valid subcommands are: clear, command, delete, disable, enable, and others. Use "help breakpoint" to find out more.
8+
# WP-MSG: "foo" is not a valid subcommand of "watchpoint set". Valid subcommands are: expression, variable. Use "help watchpoint set" to find out more.

0 commit comments

Comments
 (0)