[lldb] Fix redundant newline in AppendError calls.
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 21 Jul 2020 06:10:29 +0000 (23:10 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 21 Jul 2020 06:11:56 +0000 (23:11 -0700)
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
lldb/source/Interpreter/CommandInterpreter.cpp

index 95ae605..e6a5dce 100644 (file)
@@ -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;
     }
index 963c1ea..baceeac 100644 (file)
@@ -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;
         }