Skip to content

Commit 6e3b455

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 05f55cf commit 6e3b455

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
@@ -518,12 +518,12 @@ void SetupPythonRuntimeLibrary() {
518518
if (AddPythonDLLToSearchPath() && IsPythonDLLInPath())
519519
return;
520520
#endif
521-
llvm::errs() << "error: unable to find '"
522-
<< LLDB_PYTHON_RUNTIME_LIBRARY_FILENAME << "'.\n";
521+
WithColor::error() << "unable to find '"
522+
<< LLDB_PYTHON_RUNTIME_LIBRARY_FILENAME << "'.\n";
523523
return;
524524
#elif defined(LLDB_PYTHON_DLL_RELATIVE_PATH)
525525
if (!AddPythonDLLToSearchPath())
526-
llvm::errs() << "error: unable to find the Python runtime library.\n";
526+
WithColor::error() << "unable to find the Python runtime library.\n";
527527
#endif
528528
}
529529
#endif

0 commit comments

Comments
 (0)