Mercurial > hg > bzconsole
changeset 59:1ccb1bb4e641
bzconsole/api.py
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 27 Sep 2013 12:45:37 -0700 |
parents | cb3330bcff99 |
children | ab07751849c9 |
files | bzconsole/api.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/bzconsole/api.py Fri Sep 27 11:40:23 2013 -0700 +++ b/bzconsole/api.py Fri Sep 27 12:45:37 2013 -0700 @@ -137,8 +137,9 @@ # sanity check if product: - assert product in self.products(), "Product not found" - assert component in self.components(product), "Component '%s' not found in product '%s'" % (component, product) + assert product in self.products(), "Product not found: %s" + components = self.components(product) + assert component in components, "Component '%s' not found in product '%s' (Choices: %s)" % (component, product, ', '.join(components)) else: unique, dupe = self._unique_components() assert component in unique, 'Unique component not found: %s' % component