Skip to content

Commit d31dae6

Browse files
committed
[lldb-dap] Report any errors during attach request
1 parent 9ef60ff commit d31dae6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/tools/lldb-dap/Handler/AttachRequestHandler.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ Error AttachRequestHandler::Run(const AttachRequestArguments &args) const {
124124
attach_info.SetWaitForLaunch(args.waitFor, /*async=*/false);
125125
dap.target.Attach(attach_info, error);
126126
}
127+
if (error.Fail())
128+
return ToError(error);
127129
}
128130

129131
// Make sure the process is attached and stopped.

0 commit comments

Comments
 (0)