From c0c2455e3c2536f18ada80a0f738659508f012c1 Mon Sep 17 00:00:00 2001 From: Niklas Claesson Date: Tue, 7 Aug 2018 14:30:43 +0200 Subject: [PATCH] Prints error message instead of backtrace on fail --- mesonbuild/mesonlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py index 87f50d710..e5a81d893 100644 --- a/mesonbuild/mesonlib.py +++ b/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 = {}