Skip to content

Commit 93c0a4b

Browse files
fixup! address comments
1 parent e9625a4 commit 93c0a4b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lldb/tools/driver/Driver.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ SBError Driver::ProcessArgs(const opt::InputArgList &args, bool &exiting) {
438438
inline std::wstring GetPathToExecutableW() {
439439
// Iterate until we reach the Windows API maximum path length (32,767).
440440
std::vector<WCHAR> buffer;
441-
buffer.resize(MAX_PATH/*=260*/);
441+
buffer.resize(MAX_PATH /*=260*/);
442442
while (buffer.size() < 32767) {
443443
if (GetModuleFileNameW(NULL, buffer.data(), buffer.size()) < buffer.size())
444444
return std::wstring(buffer.begin(), buffer.end());
@@ -448,12 +448,12 @@ inline std::wstring GetPathToExecutableW() {
448448
}
449449

450450
/// Resolve the full path of the directory defined by
451-
/// LLDB_PYTHON_DLL_RELATIVE_PATH. If it exists, add it to the list of DLL search
452-
/// directories.
451+
/// LLDB_PYTHON_DLL_RELATIVE_PATH. If it exists, add it to the list of DLL
452+
/// search directories.
453453
void AddPythonDLLToSearchPath() {
454454
std::wstring modulePath = GetPathToExecutableW();
455455
if (modulePath.empty()) {
456-
WithColor::error() << "Unable to find python: " << GetLastError() << '\n';
456+
llvm::errs() << "error: unable to find python.dll." << '\n';
457457
return;
458458
}
459459

0 commit comments

Comments
 (0)