From 5d8d00d735d80308d3a2b973ee5de80dcb78c84e Mon Sep 17 00:00:00 2001 From: Brian Dolbec Date: Sun, 6 Feb 2011 15:40:15 -0800 Subject: use the new message class and fix the error recording and output --- overlord/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'overlord/cli.py') diff --git a/overlord/cli.py b/overlord/cli.py index 501dd65..0953de1 100644 --- a/overlord/cli.py +++ b/overlord/cli.py @@ -171,7 +171,8 @@ class Main(object): try: result += getattr(self, action[1])() except Exception, error: - self.output.error(self.api.get_errors()) + for _error in self.api.get_errors(): + self.output.error(_error) result = -1 # So it cannot remain 0, i.e. success break -- cgit v1.2.3-18-g5258