diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-03-15 22:30:21 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-03-15 22:30:21 +0200 |
commit | af82d04b3f8c1d5693723d4fe12e7890108a827b (patch) | |
tree | dd6f82d4ed5558840d0d4759a089f81e217f5a29 /meson.py | |
parent | 18c78c1bb93a19b070ae631fffddd42f6d9b8a3d (diff) | |
download | meson-af82d04b3f8c1d5693723d4fe12e7890108a827b.zip meson-af82d04b3f8c1d5693723d4fe12e7890108a827b.tar.gz meson-af82d04b3f8c1d5693723d4fe12e7890108a827b.tar.bz2 |
Print friendlier error messages rather than the Python stack trace.
Diffstat (limited to 'meson.py')
-rwxr-xr-x | meson.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -127,5 +127,10 @@ if __name__ == '__main__': app = MesonApp(dir1, dir2, this_file, options) print ('Source dir: ' + app.source_dir) print ('Build dir: ' + app.build_dir) - app.generate() + try: + app.generate() + except Exception as e: + print('\nMeson encountered an error:') + print(e) + sys.exit(1) |