summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2015-08-19 17:22:34 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2015-08-25 08:43:50 +0000
commit6d7075fe35d88bc2c9e2132cafe409bd24155e50 (patch)
treecd9c1b29de74a694def0e444f8250347bcfca918
parent6c41719a020e16a33fcb06a14d6a4e1e5571feb6 (diff)
downloadimport-6d7075fe35d88bc2c9e2132cafe409bd24155e50.tar.gz
Show errors encountered during import at the end
Change-Id: I86d38e0116fc8b95dcd20c1d52b1b801cf16466c
-rw-r--r--baserockimport/mainloop.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/baserockimport/mainloop.py b/baserockimport/mainloop.py
index 2e18d07..f17865f 100644
--- a/baserockimport/mainloop.py
+++ b/baserockimport/mainloop.py
@@ -199,6 +199,11 @@ class ImportLoop(object):
'%s: Import of %s %s ended (took %i seconds)', end_displaytime,
self.goal_kind, self.goal_name, duration)
+ if error:
+ self.app.status('Errors encountered during import', error=True)
+ for e in errors:
+ self.app.status('\t%s', e, error=True)
+
def _process_package(self, package):
'''Process a single package.'''