mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Added debugging message to exception on write.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
8b00e58770
commit
a3d83fdeea
1 file changed
+5
-2
@@ -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)
|
||||
|
||||