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 332e181 commit b509831Copy full SHA for b509831
lldb/tools/lldb-dap/DAP.cpp
@@ -35,6 +35,7 @@
35
#include "llvm/ADT/StringExtras.h"
36
#include "llvm/ADT/StringRef.h"
37
#include "llvm/ADT/Twine.h"
38
+#include "llvm/Support/Chrono.h"
39
#include "llvm/Support/Error.h"
40
#include "llvm/Support/ErrorHandling.h"
41
#include "llvm/Support/FormatVariadic.h"
@@ -968,8 +969,10 @@ lldb::SBError DAP::WaitForProcessToStop(std::chrono::seconds seconds) {
968
969
}
970
std::this_thread::sleep_for(std::chrono::microseconds(250));
971
- error.SetErrorStringWithFormat("process failed to stop within %lld seconds",
972
- seconds.count());
+ error.SetErrorString(
973
+ llvm::formatv("process failed to stop within {0}", seconds)
974
+ .str()
975
+ .c_str());
976
return error;
977
978
0 commit comments