File tree 1 file changed +8
-9
lines changed
lldb/source/Plugins/ScriptInterpreter/Python/Interfaces 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -85,15 +85,14 @@ class ScriptedPythonInterface : virtual public ScriptedInterface {
85
85
bool has_class_name = !class_name.empty ();
86
86
bool has_interpreter_dict =
87
87
!(llvm::StringRef (m_interpreter.GetDictionaryName ()).empty ());
88
-
89
- if (!has_class_name)
90
- return create_error (" Missing script class name." );
91
-
92
- if (!has_interpreter_dict)
93
- return create_error (" Invalid script interpreter dictionary." );
94
-
95
- if (!script_obj)
96
- return create_error (" Missing scripting object." );
88
+ if (!has_class_name && !has_interpreter_dict && !script_obj) {
89
+ if (!has_class_name)
90
+ return create_error (" Missing script class name." );
91
+ else if (!has_interpreter_dict)
92
+ return create_error (" Invalid script interpreter dictionary." );
93
+ else
94
+ return create_error (" Missing scripting object." );
95
+ }
97
96
98
97
Locker py_lock (&m_interpreter, Locker::AcquireLock | Locker::NoSTDIN,
99
98
Locker::FreeLock);
You can’t perform that action at this time.
0 commit comments