aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mconf.py
diff options
context:
space:
mode:
authorJukka Laurila <jlaurila@google.com>2018-03-10 13:18:15 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2018-03-10 18:04:52 +0200
commit52c50da6c7a921e1625fff26c7844af7d941afd9 (patch)
treee93c2d10aeed04b9a928f1387a469d98ef1524d8 /mesonbuild/mconf.py
parentf6fd03485e6ab95aae766649f621a9b4260ea674 (diff)
downloadmeson-52c50da6c7a921e1625fff26c7844af7d941afd9.zip
meson-52c50da6c7a921e1625fff26c7844af7d941afd9.tar.gz
meson-52c50da6c7a921e1625fff26c7844af7d941afd9.tar.bz2
Refactor: Add log.error and log.exception to reduce code duplication.
Diffstat (limited to 'mesonbuild/mconf.py')
-rw-r--r--mesonbuild/mconf.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/mesonbuild/mconf.py b/mesonbuild/mconf.py
index db109b7..b409615 100644
--- a/mesonbuild/mconf.py
+++ b/mesonbuild/mconf.py
@@ -249,9 +249,8 @@ def run(args):
if save:
c.save()
except ConfException as e:
- print('Meson configurator encountered an error:\n')
- print(e)
- return 1
+ print('Meson configurator encountered an error:')
+ raise e
return 0