aboutsummaryrefslogtreecommitdiff
path: root/lldb/tools/lldb-dap/Handler
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/tools/lldb-dap/Handler')
-rw-r--r--lldb/tools/lldb-dap/Handler/AttachRequestHandler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/tools/lldb-dap/Handler/AttachRequestHandler.cpp b/lldb/tools/lldb-dap/Handler/AttachRequestHandler.cpp
index 371349a..490513f 100644
--- a/lldb/tools/lldb-dap/Handler/AttachRequestHandler.cpp
+++ b/lldb/tools/lldb-dap/Handler/AttachRequestHandler.cpp
@@ -124,6 +124,8 @@ Error AttachRequestHandler::Run(const AttachRequestArguments &args) const {
attach_info.SetWaitForLaunch(args.waitFor, /*async=*/false);
dap.target.Attach(attach_info, error);
}
+ if (error.Fail())
+ return ToError(error);
}
// Make sure the process is attached and stopped.