From 7926143fb0a56ae17e06e462d19e0fde48801a5c Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Mon, 20 Jul 2020 23:10:29 -0700 Subject: [PATCH] [lldb] Fix redundant newline in AppendError calls. AppendError always appends a newline to the given argument, while AppendErrorWithFormat does not. I've updated the calls to remove the extra newline. --- lldb/source/Breakpoint/BreakpointIDList.cpp | 2 +- lldb/source/Interpreter/CommandInterpreter.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/source/Breakpoint/BreakpointIDList.cpp b/lldb/source/Breakpoint/BreakpointIDList.cpp index 95ae605..e6a5dce 100644 --- a/lldb/source/Breakpoint/BreakpointIDList.cpp +++ b/lldb/source/Breakpoint/BreakpointIDList.cpp @@ -223,7 +223,7 @@ void BreakpointIDList::FindAndReplaceIDRanges(Args &old_args, Target *target, result.AppendError("Invalid breakpoint id range: Either " "both ends of range must specify" " a breakpoint location, or neither can " - "specify a breakpoint location.\n"); + "specify a breakpoint location."); result.SetStatus(eReturnStatusFailed); return; } diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index 963c1ea..baceeac 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -1708,7 +1708,7 @@ bool CommandInterpreter::HandleCommand(const char *command_line, command_string = command_line; original_command_string = command_line; if (m_repeat_command.empty()) { - result.AppendError("No auto repeat.\n"); + result.AppendError("No auto repeat."); result.SetStatus(eReturnStatusFailed); return false; } -- 2.7.4