aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNellie Zhang <nelliezh@gmail.com>2021-05-08 11:24:22 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2021-05-08 20:39:25 +0300
commit6033c0f0da764e9d81e35366a6ba81b8f6b984f7 (patch)
tree50a8cea2f467e0736271cbbd4a749665454343ae
parentd433abf89cfe6be640d7a913bfdd4ae723f8b573 (diff)
downloadmeson-6033c0f0da764e9d81e35366a6ba81b8f6b984f7.zip
meson-6033c0f0da764e9d81e35366a6ba81b8f6b984f7.tar.gz
meson-6033c0f0da764e9d81e35366a6ba81b8f6b984f7.tar.bz2
Fix python exception thrown for invalid resource path
If an invalid resource path is specified, then an uncaught python exception occurs, and a backtrace is shown. Throw a MesonException instead to produce a cleaner error message.
-rw-r--r--mesonbuild/modules/qt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/qt.py b/mesonbuild/modules/qt.py
index 645696d..b7389bd 100644
--- a/mesonbuild/modules/qt.py
+++ b/mesonbuild/modules/qt.py
@@ -136,7 +136,7 @@ class QtBaseModule(ExtensionModule):
return rcc_dirname, result
except Exception:
- return []
+ raise MesonException(f'Unable to parse resource file {abspath}')
def parse_qrc_deps(self, state, rcc_file):
rcc_dirname, nodes = self.qrc_nodes(state, rcc_file)