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.
pull/8750/head
Nellie Zhang 4 years ago committed by Jussi Pakkanen
parent d433abf89c
commit 6033c0f0da
  1. 2
      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)

Loading…
Cancel
Save