Skip to content

Commit c9e22d3

Browse files
[lldb][windows] add color to the Python.dll not found error (#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 9c2bbfe commit c9e22d3

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
@@ -508,12 +508,12 @@ void SetupPythonRuntimeLibrary() {
508508
if (AddPythonDLLToSearchPath() && IsPythonDLLInPath())
509509
return;
510510
#endif
511-
llvm::errs() << "error: unable to find '"
512-
<< LLDB_PYTHON_RUNTIME_LIBRARY_FILENAME << "'.\n";
511+
WithColor::error() << "unable to find '"
512+
<< LLDB_PYTHON_RUNTIME_LIBRARY_FILENAME << "'.\n";
513513
return;
514514
#elif defined(LLDB_PYTHON_DLL_RELATIVE_PATH)
515515
if (!AddPythonDLLToSearchPath())
516-
llvm::errs() << "error: unable to find the Python runtime library.\n";
516+
WithColor::error() << "unable to find the Python runtime library.\n";
517517
#endif
518518
}
519519
#endif

0 commit comments

Comments
 (0)