diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2018-05-20 14:30:46 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-05-21 23:29:06 +0300 |
commit | b3f74b9c3af08061de31c3177da6231289c08e84 (patch) | |
tree | 8f622c78f762842f6d740572307ab4f5ba0d6deb /mesonbuild/modules/windows.py | |
parent | 45cc001a40ff52254a0bd27718149dce8cebe73d (diff) | |
download | meson-b3f74b9c3af08061de31c3177da6231289c08e84.zip meson-b3f74b9c3af08061de31c3177da6231289c08e84.tar.gz meson-b3f74b9c3af08061de31c3177da6231289c08e84.tar.bz2 |
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.
Diffstat (limited to 'mesonbuild/modules/windows.py')
-rw-r--r-- | mesonbuild/modules/windows.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 = [] |