diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-05-31 20:34:12 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-05-31 20:42:17 +0300 |
commit | 951e6d1f82f3814b0de95f1eaaba129005cb5cbb (patch) | |
tree | e66314e5f8e7da9b11cd67f7453c41906674ee06 /tools | |
parent | e8c6c09717bd4f3945161099796c58e25fd5a640 (diff) | |
download | meson-951e6d1f82f3814b0de95f1eaaba129005cb5cbb.zip meson-951e6d1f82f3814b0de95f1eaaba129005cb5cbb.tar.gz meson-951e6d1f82f3814b0de95f1eaaba129005cb5cbb.tar.bz2 |
Better error message.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/cmake2meson.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/cmake2meson.py b/tools/cmake2meson.py index 1c97282..e7956fd 100755 --- a/tools/cmake2meson.py +++ b/tools/cmake2meson.py @@ -135,5 +135,8 @@ if __name__ == '__main__': if len(sys.argv) != 2: print(sys.argv[0], '<CMake project root>') sys.exit(1) - convert(sys.argv[1]) - + try: + convert(sys.argv[1]) + except Exception as e: + print('Error:', e) + sys.exit(1) |