diff options
author | David Pursehouse <david.pursehouse@sonymobile.com> | 2012-11-16 19:12:32 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2012-11-16 19:12:55 +0900 |
commit | f91074881fb437e8cba8f9be81bd63cda5e0a557 (patch) | |
tree | 97f13dc80871a3c7c960792cc225fbfd33ed7eb8 | |
parent | 88b86728a4451b97a2c6dcae2feb98014c077793 (diff) | |
download | git-repo-f91074881fb437e8cba8f9be81bd63cda5e0a557.tar.gz |
Better error message if 'remove-project' refers to non-existent project
If a local manifest includes a 'remove-project' element that refers to
a project that does not exist in the manifest, the error message is a
bit cryptic.
Change the error message to make it clearer what is wrong.
Change-Id: I0b1043aaec87893c3128211d3a9ab2db6d600755
-rw-r--r-- | manifest_xml.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/manifest_xml.py b/manifest_xml.py index 1b954561..122393cf 100644 --- a/manifest_xml.py +++ b/manifest_xml.py | |||
@@ -443,9 +443,8 @@ class XmlManifest(object): | |||
443 | try: | 443 | try: |
444 | del self._projects[name] | 444 | del self._projects[name] |
445 | except KeyError: | 445 | except KeyError: |
446 | raise ManifestParseError( | 446 | raise ManifestParseError('remove-project element specifies non-existent ' |
447 | 'project %s not found' % | 447 | 'project: %s' % name) |
448 | (name)) | ||
449 | 448 | ||
450 | # If the manifest removes the hooks project, treat it as if it deleted | 449 | # If the manifest removes the hooks project, treat it as if it deleted |
451 | # the repo-hooks element too. | 450 | # the repo-hooks element too. |