aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/qt.py
diff options
context:
space:
mode:
authorMarc Herbert <marc.herbert@gmail.com>2019-11-26 01:15:52 -0800
committerJussi Pakkanen <jpakkane@gmail.com>2019-11-27 02:28:20 +0200
commitadcd70861d14ae591130cc1173093e5c83513867 (patch)
tree0f372e5c10871eb8dbcdf07dd792dbcf5779e526 /mesonbuild/modules/qt.py
parent380b9071bedb51f34d96e06c54e3016f64b305c3 (diff)
downloadmeson-adcd70861d14ae591130cc1173093e5c83513867.zip
meson-adcd70861d14ae591130cc1173093e5c83513867.tar.gz
meson-adcd70861d14ae591130cc1173093e5c83513867.tar.bz2
modules/qt.py: friendlier "lrelease-qtN not found" error message
When lrelease-qtN is missing, upgrade the error message from the cryptic: meson.build:75:4: ERROR: Tried to use not-found external program in "command" to the meaningful: meson.build:75:4: ERROR: qt.compile_translations: lrelease-qt5 not found Issue found and tested with "test cases/frameworks/4 qt/"
Diffstat (limited to 'mesonbuild/modules/qt.py')
-rw-r--r--mesonbuild/modules/qt.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/modules/qt.py b/mesonbuild/modules/qt.py
index 11289c4..6887bc7 100644
--- a/mesonbuild/modules/qt.py
+++ b/mesonbuild/modules/qt.py
@@ -206,6 +206,9 @@ class QtBaseModule(ExtensionModule):
self._detect_tools(state.environment, kwargs.get('method', 'auto'))
translations = []
for ts in ts_files:
+ if not self.lrelease.found():
+ raise MesonException('qt.compile_translations: ' +
+ self.lrelease.name + ' not found')
cmd = [self.lrelease, '@INPUT@', '-qm', '@OUTPUT@']
lrelease_kwargs = {'output': '@BASENAME@.qm',
'input': ts,