aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2023-02-01 16:09:59 -0500
committerNirbheek Chauhan <nirbheek@centricular.com>2023-02-19 02:55:57 +0530
commit9dbaeae09e99fc5533f67786207ad9dd737f5954 (patch)
tree9bbfc9bcdae79a1d7a52e7c53a8516c8a584e957 /mesonbuild
parent1860b6b2d968c8bca08ecd0e6841fda8bd1e2e75 (diff)
downloadmeson-9dbaeae09e99fc5533f67786207ad9dd737f5954.zip
meson-9dbaeae09e99fc5533f67786207ad9dd737f5954.tar.gz
meson-9dbaeae09e99fc5533f67786207ad9dd737f5954.tar.bz2
pylint 2.16: raise a more intentional exception
Include a frivolous error message too. We never see it, but if someone reads the code and wonders why on *earth* there's a DSL function to raise a RuntimeError, the message string will clue them in.
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/interpreter/interpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py
index 44b2e72..617b386 100644
--- a/mesonbuild/interpreter/interpreter.py
+++ b/mesonbuild/interpreter/interpreter.py
@@ -1375,7 +1375,7 @@ class Interpreter(InterpreterBase, HoldableObject):
@noKwargs
@noPosargs
def func_exception(self, node, args, kwargs):
- raise Exception()
+ raise RuntimeError('unit test traceback :)')
def add_languages(self, args: T.List[str], required: bool, for_machine: MachineChoice) -> bool:
success = self.add_languages_for(args, required, for_machine)