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.
@@ -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)
