diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2025-09-04 16:37:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-04 16:37:41 -0700 |
commit | 820f4402745dda82fca482f2b83925e2953e6ad9 (patch) | |
tree | e4e8cc10b5ed14a8f91e0e0a85092e2600271a33 /lldb/source/Commands/CommandObjectCommands.cpp | |
parent | fb5626fdd52905a0f4ade44221f83f0e469b9a8c (diff) | |
download | llvm-820f4402745dda82fca482f2b83925e2953e6ad9.zip llvm-820f4402745dda82fca482f2b83925e2953e6ad9.tar.gz llvm-820f4402745dda82fca482f2b83925e2953e6ad9.tar.bz2 |
[lldb] Correct style of error messages (#156774)
The LLVM Style Guide says the following about error and warning messages
[1]:
> [T]o match error message styles commonly produced by other tools,
> start the first sentence with a lowercase letter, and finish the last
> sentence without a period, if it would end in one otherwise.
I often provide this feedback during code review, but we still have a
bunch of places where we have inconsistent error message, which bothers
me as a user. This PR identifies a handful of those places and updates
the messages to be consistent.
[1] https://llvm.org/docs/CodingStandards.html#error-and-warning-messages
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectCommands.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectCommands.cpp b/lldb/source/Commands/CommandObjectCommands.cpp index 3049eb8..a3293f0 100644 --- a/lldb/source/Commands/CommandObjectCommands.cpp +++ b/lldb/source/Commands/CommandObjectCommands.cpp @@ -418,7 +418,7 @@ protected: if ((pos != std::string::npos) && (pos > 0)) raw_command_string = raw_command_string.substr(pos); } else { - result.AppendError("Error parsing command string. No alias created."); + result.AppendError("error parsing command string. No alias created"); return; } @@ -2888,7 +2888,7 @@ protected: size_t num_args = command.GetArgumentCount(); if (num_args == 0) { - result.AppendError("No command was specified."); + result.AppendError("no command was specified"); return; } |