From b3f74b9c3af08061de31c3177da6231289c08e84 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sun, 20 May 2018 14:30:46 -0400 Subject: Windows: Fix exception when windres is not found If rescomp is not found its command is None and that make meson print backtrace instead of displaying the error message. --- mesonbuild/modules/windows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/modules/windows.py') diff --git a/mesonbuild/modules/windows.py b/mesonbuild/modules/windows.py index 62cb9d1..ac5b8b3 100644 --- a/mesonbuild/modules/windows.py +++ b/mesonbuild/modules/windows.py @@ -66,7 +66,7 @@ class WindowsModule(ExtensionModule): res_args = extra_args + ['@INPUT@', '@OUTPUT@'] suffix = 'o' if not rescomp.found(): - raise MesonException('Could not find Windows resource compiler %s.' % ' '.join(rescomp.get_command())) + raise MesonException('Could not find Windows resource compiler "%s".' % rescomp_name) res_targets = [] -- cgit v1.1