diff options
author | Jukka Laurila <jlaurila@google.com> | 2018-03-10 13:18:15 +0100 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-03-10 18:04:52 +0200 |
commit | 52c50da6c7a921e1625fff26c7844af7d941afd9 (patch) | |
tree | e93c2d10aeed04b9a928f1387a469d98ef1524d8 /mesonbuild/mconf.py | |
parent | f6fd03485e6ab95aae766649f621a9b4260ea674 (diff) | |
download | meson-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.py | 5 |
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 |