[pkg-eucalyptus-commits] [SCM] managing cloud instances for Eucalyptus branch, master, updated. 3.0.0-alpha3-257-g1da8e3a

Garrett Holmstrom gholms at fedoraproject.org
Sun Jun 16 02:30:22 UTC 2013


The following commit has been merged in the master branch:
commit b313ebf04c0ec34f187060c1ab7c792b9e04573c
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date:   Tue Feb 19 22:24:27 2013 -0800

    Make error messages look a little nicer

diff --git a/euca2ools/exceptions.py b/euca2ools/exceptions.py
index 5a44ecf..6a301ca 100644
--- a/euca2ools/exceptions.py
+++ b/euca2ools/exceptions.py
@@ -162,5 +162,7 @@ class AWSError(requestbuilder.exceptions.ServerError):
                 self.body    = None
 
     def __str__(self):
-        return '({code}) {msg}'.format(code=(self.code or self.status_code),
-                                       msg=(self.message or ''))
+        s_bits = [self.__class__.__name__ + ':', self.code or self.status_code]
+        if self.message:
+            s_bits.append(self.message)
+        return ' '.join(s_bits)

-- 
managing cloud instances for Eucalyptus



More information about the pkg-eucalyptus-commits mailing list