Skip to content

Commit 118171f

Browse files
[lldb-dap] Use llvm::formatv for error string formatting
Co-authored-by: Jonas Devlieghere <[email protected]>
1 parent 3ba244c commit 118171f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ Error AttachRequestHandler::Run(const AttachRequestArguments &args) const {
8787
// Use the unique target ID to get the target.
8888
target = dap.debugger.FindTargetByGloballyUniqueID(*target_id);
8989
if (!target.IsValid()) {
90-
error.SetErrorStringWithFormat("invalid target_id %llu in attach config",
91-
(unsigned long long)*target_id);
90+
error.SetErrorString(llvm::formatv("invalid target_id {0} in attach config", *target_id).str().c_str());
9291
}
9392
} else {
9493
target = dap.CreateTarget(error);

0 commit comments

Comments
 (0)