]> scripts.mit.edu Git - wizard.git/blobdiff - wizard/command/summary/list.py
Add list-errors, fix exceptions, and fix logging bug.
[wizard.git] / wizard / command / summary / list.py
index 70f137302227d9ae85481283bb271f77bb329345..1a1cefaf6118ba507de8bd8d04114cdb26572980 100644 (file)
@@ -1,10 +1,18 @@
+import logging
+import traceback
+
 from wizard.command import _command
 from wizard.command.summary import _summary
 
 def main(argv, baton):
     options, show = parse_args(argv, baton)
-    for d in _summary.parse_install_lines(show, options):
+    errors = 0
+    for d in _summary.parse_install_lines(show, options, True):
+        if isinstance(d, Exception):
+            errors += 1
         print d.location
+    if errors:
+        logging.warning("%d errors, see wizard summary list-errors for details" % errors)
 
 def parse_args(argv, baton):
     usage = """usage: %prog summary list [ARGS] [APP[-VERSION]]