aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectCommands.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2023-02-14 13:09:16 -0800
committerJim Ingham <jingham@apple.com>2023-02-14 13:47:14 -0800
commit9093f3c39b8fa8ef836c627e1db329cd7349e9bb (patch)
tree036427ca689ebcec06fb7db22857c925e6ff1acb /lldb/source/Commands/CommandObjectCommands.cpp
parent853a46cfb1ca3b75ab0bd65b2c02d1a0d60c84c3 (diff)
downloadllvm-9093f3c39b8fa8ef836c627e1db329cd7349e9bb.zip
llvm-9093f3c39b8fa8ef836c627e1db329cd7349e9bb.tar.gz
llvm-9093f3c39b8fa8ef836c627e1db329cd7349e9bb.tar.bz2
Report a useful error when someone passes an incorrect python class name.
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectCommands.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectCommands.cpp b/lldb/source/Commands/CommandObjectCommands.cpp
index f06dec8..254e226 100644
--- a/lldb/source/Commands/CommandObjectCommands.cpp
+++ b/lldb/source/Commands/CommandObjectCommands.cpp
@@ -1600,7 +1600,8 @@ protected:
auto cmd_obj_sp = interpreter->CreateScriptCommandObject(
m_options.m_class_name.c_str());
if (!cmd_obj_sp) {
- result.AppendError("cannot create helper object");
+ result.AppendErrorWithFormatv("cannot create helper object for: "
+ "'{0}'", m_options.m_class_name);
return false;
}