Skip to content

Commit 8d442c3

Browse files
[lldb][windows] add color to the Python.dll not found error (llvm#168718)
Make the `Python.dll not found` error message stand out more by using the `llvm::WithColor::error()` method. --- ### Example #### Before <img width="782" height="431" alt="Screenshot 2025-11-19 at 15 50 22" src="https://github.com/user-attachments/assets/93960c50-cbf2-41f7-aba3-2f2a8af916cc" /> #### After <img width="780" height="430" alt="Screenshot 2025-11-19 at 15 54 28" src="https://github.com/user-attachments/assets/f7f4954b-0ce3-4a4b-b9af-5af876032573" /> rdar://165047059
1 parent 6f5d12a commit 8d442c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lldb/tools/driver/Driver.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -505,12 +505,12 @@ void SetupPythonRuntimeLibrary() {
505505
if (AddPythonDLLToSearchPath() && IsPythonDLLInPath())
506506
return;
507507
#endif
508-
llvm::errs() << "error: unable to find '"
509-
<< LLDB_PYTHON_RUNTIME_LIBRARY_FILENAME << "'.\n";
508+
WithColor::error() << "unable to find '"
509+
<< LLDB_PYTHON_RUNTIME_LIBRARY_FILENAME << "'.\n";
510510
return;
511511
#elif defined(LLDB_PYTHON_DLL_RELATIVE_PATH)
512512
if (!AddPythonDLLToSearchPath())
513-
llvm::errs() << "error: unable to find the Python runtime library.\n";
513+
WithColor::error() << "unable to find the Python runtime library.\n";
514514
#endif
515515
}
516516
#endif

0 commit comments

Comments
 (0)