libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1125667 - /incubator/libcloud/trunk/libcloud/storage/types.py
Date Sat, 21 May 2011 11:28:20 GMT
Author: tomaz
Date: Sat May 21 11:28:19 2011
New Revision: 1125667

URL: http://svn.apache.org/viewvc?rev=1125667&view=rev
Log:
Also include actual error value when calling str on Error object.

Modified:
    incubator/libcloud/trunk/libcloud/storage/types.py

Modified: incubator/libcloud/trunk/libcloud/storage/types.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/storage/types.py?rev=1125667&r1=1125666&r2=1125667&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/storage/types.py (original)
+++ incubator/libcloud/trunk/libcloud/storage/types.py Sat May 21 11:28:19 2011
@@ -55,9 +55,9 @@ class ContainerError(LibcloudError):
         super(ContainerError, self).__init__(value=value, driver=driver)
 
     def __str__(self):
-        return ('<%s in %s, container = %s>' %
+        return ('<%s in %s, container=%s, value=%s>' %
                 (self.error_type, repr(self.driver),
-                 self.container_name))
+                 self.container_name, self.value))
 
 class ObjectError(LibcloudError):
     error_type = 'ContainerError'



Mime
View raw message