[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Added debugging message to exception on write.



# HG changeset patch
# User emellor@ewan
# Node ID 95e589a9b2f6bfe3328af3e06ccb27173fd55e61
# Parent  d3bc8314b6f510208cae15fa42c013e0b12335da
Added debugging message to exception on write.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r d3bc8314b6f5 -r 95e589a9b2f6 tools/python/xen/xend/xenstore/xsnode.py
--- a/tools/python/xen/xend/xenstore/xsnode.py  Tue Sep 20 14:44:49 2005
+++ b/tools/python/xen/xend/xenstore/xsnode.py  Tue Sep 20 16:19:19 2005
@@ -272,8 +272,11 @@
     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)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.