Added debugging message to exception on write.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
emellor@ewan committed 2005-09-20 17:19:19 +01:00
1 parent 8b00e58770
commit a3d83fdeea
1 file changed
+5 -2
+5 -2
View File
@@ -272,8 +272,11 @@ class XenStore:
def write(self, path, data):
try:
self.getxs().write(path, data)
except Exception, ex:
raise
except RuntimeError, ex:
raise RuntimeError(ex.args[0],
ex.args[1] +
(', while writing %s : %s' % (str(path),
str(data))))
def begin(self, path):
self.getxs().transaction_start(path)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.