aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/dotest.py
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2024-04-17 09:16:46 +0000
committerDavid Spickett <david.spickett@linaro.org>2024-04-17 09:19:26 +0000
commita16bb0701409376dee3a587ae351a6019d6de4e0 (patch)
tree20804689809478d96089aaa588a4011c06b83a3f /lldb/packages/Python/lldbsuite/test/dotest.py
parentd1a69e4a6ee0b04778da7728123c47eef2290564 (diff)
downloadllvm-a16bb0701409376dee3a587ae351a6019d6de4e0.zip
llvm-a16bb0701409376dee3a587ae351a6019d6de4e0.tar.gz
llvm-a16bb0701409376dee3a587ae351a6019d6de4e0.tar.bz2
[lldb][test] Improve invalid compiler error message
I was debugging space separation issues when passing user arguments and noticed this error is really hard to read in that scenario. Put "" around the invalid compiler name so you can tell whether you have spaces around it that's causing the problem.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/dotest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py
index 8c29145..2ec4a84 100644
--- a/lldb/packages/Python/lldbsuite/test/dotest.py
+++ b/lldb/packages/Python/lldbsuite/test/dotest.py
@@ -248,7 +248,7 @@ def parseOptionsAndInitTestdirs():
configuration.compiler = which(args.compiler)
if not is_exe(configuration.compiler):
logging.error(
- "%s is not a valid compiler executable; aborting...", args.compiler
+ '"%s" is not a valid compiler executable; aborting...', args.compiler
)
sys.exit(-1)
else: