From f91074881fb437e8cba8f9be81bd63cda5e0a557 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Fri, 16 Nov 2012 19:12:32 +0900 Subject: [PATCH] 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 --- manifest_xml.py | 5 ++--- 1 file 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): try: del self._projects[name] except KeyError: - raise ManifestParseError( - 'project %s not found' % - (name)) + raise ManifestParseError('remove-project element specifies non-existent ' + 'project: %s' % name) # If the manifest removes the hooks project, treat it as if it deleted # the repo-hooks element too.