aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/wrap/wraptool.py
diff options
context:
space:
mode:
authorMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-11-06 04:36:30 -0500
committerJussi Pakkanen <jpakkane@gmail.com>2019-11-07 22:14:59 +0200
commitd08091756191981f1bd3c7741b412b95f965fe0a (patch)
tree00406fafdc8b0311e02366963d217bae932c9a04 /mesonbuild/wrap/wraptool.py
parenta47c1374b96e49b5fe617baee3ea85a94cd96ae6 (diff)
downloadmeson-d08091756191981f1bd3c7741b412b95f965fe0a.zip
meson-d08091756191981f1bd3c7741b412b95f965fe0a.tar.gz
meson-d08091756191981f1bd3c7741b412b95f965fe0a.tar.bz2
wrap.py: catch connection error with WrapException
fixes #6130 wrap: more error verbosity
Diffstat (limited to 'mesonbuild/wrap/wraptool.py')
-rw-r--r--mesonbuild/wrap/wraptool.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/wrap/wraptool.py b/mesonbuild/wrap/wraptool.py
index a9d83fc..cd15cef 100644
--- a/mesonbuild/wrap/wraptool.py
+++ b/mesonbuild/wrap/wraptool.py
@@ -124,11 +124,11 @@ def update(options):
raise SystemExit('Subprojects dir not found. Run this command in your source root directory.')
wrapfile = os.path.join('subprojects', name + '.wrap')
if not os.path.exists(wrapfile):
- raise SystemExit('Project', name, 'is not in use.')
+ raise SystemExit('Project ' + name + ' is not in use.')
(branch, revision, subdir, src_file, patch_file) = get_current_version(wrapfile)
(new_branch, new_revision) = get_latest_version(name)
if new_branch == branch and new_revision == revision:
- print('Project', name, 'is already up to date.')
+ print('Project ' + name + ' is already up to date.')
raise SystemExit
update_wrap_file(wrapfile, name, new_branch, new_revision)
shutil.rmtree(os.path.join('subprojects', subdir), ignore_errors=True)