[Lldb-commits] [lldb] [lldb] Add actionable feedback when overwriting a command fails (PR #76030)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Wed Dec 20 01:45:44 PST 2023
================
@@ -1160,7 +1160,9 @@ Status CommandInterpreter::AddUserCommand(llvm::StringRef name,
if (UserCommandExists(name)) {
if (!can_replace) {
- result.SetErrorString("user command exists and force replace not set");
+ result.SetErrorString(
+ "user command exists and force replace not set by --overwrite or "
----------------
DavidSpickett wrote:
Can we include the name of the command and "already" here, for example:
```
user command "foo" already exists and force replace not....
```
https://github.com/llvm/llvm-project/pull/76030
More information about the lldb-commits
mailing list