aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2021-10-12 17:40:11 -0400
committerXavier Claessens <xclaesse@gmail.com>2021-10-13 08:07:25 -0400
commit4f7c0d0b62e0599f68b37b39d6d346cfb02295f0 (patch)
tree3ae63720e210ebbdab148c74bc89eb40076fbeec /mesonbuild
parent220d5aa7ba76afef511e87aa6b67fcccc5f4071d (diff)
downloadmeson-4f7c0d0b62e0599f68b37b39d6d346cfb02295f0.zip
meson-4f7c0d0b62e0599f68b37b39d6d346cfb02295f0.tar.gz
meson-4f7c0d0b62e0599f68b37b39d6d346cfb02295f0.tar.bz2
optinterpreter: Downgrade error to deprecation
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/optinterpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/optinterpreter.py b/mesonbuild/optinterpreter.py
index d7565f2..7818915 100644
--- a/mesonbuild/optinterpreter.py
+++ b/mesonbuild/optinterpreter.py
@@ -194,7 +194,7 @@ class OptionInterpreter:
key = mesonlib.OptionKey(opt_name, self.subproject)
if key in self.options:
- raise OptionException(f'Option {opt_name} already exists')
+ mlog.deprecation(f'Option {opt_name} already exists.')
self.options[key] = opt
@permittedKwargs({'value', 'yield'})