changeset 58:cb3330bcff99

bzconsole/api.py
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 27 Sep 2013 11:40:23 -0700
parents 027a85c2a6d7
children 1ccb1bb4e641
files bzconsole/api.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bzconsole/api.py	Thu Sep 26 02:39:31 2013 -0700
+++ b/bzconsole/api.py	Fri Sep 27 11:40:23 2013 -0700
@@ -138,7 +138,7 @@
         # sanity check
         if product:
             assert product in self.products(), "Product not found"
-            assert component in self.components(product), "Component not found"
+            assert component in self.components(product), "Component '%s' not found in product '%s'" % (component, product)
         else:
             unique, dupe = self._unique_components()
             assert component in unique, 'Unique component not found: %s' % component