Prints error message instead of backtrace on fail

pull/3220/merge
Niklas Claesson 6 years ago committed by Nirbheek Chauhan
parent e45ab8b24c
commit c0c2455e3c
  1. 2
      mesonbuild/mesonlib.py

@ -247,7 +247,7 @@ def get_compiler_for_source(compilers, src):
for comp in compilers:
if comp.can_compile(src):
return comp
raise RuntimeError('No specified compiler can handle file {!s}'.format(src))
raise MesonException('No specified compiler can handle file {!s}'.format(src))
def classify_unity_sources(compilers, sources):
compsrclist = {}

Loading…
Cancel
Save