We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2de269a commit 300d295Copy full SHA for 300d295
lldb/tools/lldb-dap/lldb-dap.cpp
@@ -1779,8 +1779,10 @@ lldb::SBError LaunchProcess(const llvm::json::Object &request) {
1779
// Set the launch info so that run commands can access the configured
1780
// launch details.
1781
g_dap.target.SetLaunchInfo(launch_info);
1782
- if (llvm::Error err = g_dap.RunLaunchCommands(launchCommands))
+ if (llvm::Error err = g_dap.RunLaunchCommands(launchCommands)) {
1783
error.SetErrorString(llvm::toString(std::move(err)).c_str());
1784
+ return error;
1785
+ }
1786
// The custom commands might have created a new target so we should use the
1787
// selected target after these commands are run.
1788
g_dap.target = g_dap.debugger.GetSelectedTarget();
0 commit comments