# HG changeset patch # User Jeff Hammel # Date 1380311137 25200 # Node ID 1ccb1bb4e6419966dd7c6744b1ffc7a4a89d4101 # Parent cb3330bcff9929ab9f5d9a7a311e3804b8acc481 bzconsole/api.py diff -r cb3330bcff99 -r 1ccb1bb4e641 bzconsole/api.py --- 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