Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 202911
Collapse All | Expand All

(-)pym/cache/cache_errors.py (-1 / +4 lines)
Lines 9-16 Link Here
9
	def __init__(self, class_name, error):
9
	def __init__(self, class_name, error):
10
		self.error, self.class_name = error, class_name
10
		self.error, self.class_name = error, class_name
11
	def __str__(self):
11
	def __str__(self):
12
		error_str = "'%s'" % str(self.error)
13
		if hasattr(self.error, "errno"):
14
			error_str += " errno=%d" % self.error.errno
12
		return "Creation of instance %s failed due to %s" % \
15
		return "Creation of instance %s failed due to %s" % \
13
			(self.class_name, str(self.error))
16
			(self.class_name, error_str)
14
17
15
18
16
class CacheCorruption(CacheError):
19
class CacheCorruption(CacheError):

Return to bug 202911