From 6e3b455484731099e65312303051ba9895bfc3f6 Mon Sep 17 00:00:00 2001 From: Charles Zablit Date: Wed, 19 Nov 2025 17:30:31 +0100 Subject: [PATCH] [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 Screenshot 2025-11-19 at 15 50 22 #### After Screenshot 2025-11-19 at 15 54 28 rdar://165047059 --- lldb/tools/driver/Driver.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lldb/tools/driver/Driver.cpp b/lldb/tools/driver/Driver.cpp index 1be3969538dd6..99e650686abb1 100644 --- a/lldb/tools/driver/Driver.cpp +++ b/lldb/tools/driver/Driver.cpp @@ -518,12 +518,12 @@ void SetupPythonRuntimeLibrary() { if (AddPythonDLLToSearchPath() && IsPythonDLLInPath()) return; #endif - llvm::errs() << "error: unable to find '" - << LLDB_PYTHON_RUNTIME_LIBRARY_FILENAME << "'.\n"; + WithColor::error() << "unable to find '" + << LLDB_PYTHON_RUNTIME_LIBRARY_FILENAME << "'.\n"; return; #elif defined(LLDB_PYTHON_DLL_RELATIVE_PATH) if (!AddPythonDLLToSearchPath()) - llvm::errs() << "error: unable to find the Python runtime library.\n"; + WithColor::error() << "unable to find the Python runtime library.\n"; #endif } #endif