You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2011/05/21 13:28:20 UTC
svn commit: r1125667 - /incubator/libcloud/trunk/libcloud/storage/types.py
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'