|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-changelog
[Xen-changelog] Added diagnostic message when RuntimeError is	raised ins
 
# HG changeset patch
# User emellor@ewan
# Node ID 4be4126911dcddc8efab7e8076ca4cca95d4f169
# Parent  10759a44ce3b9431b730eadde2417777ca8f9943
Added diagnostic message when RuntimeError is raised inside XenStore.exists.
This is one of the first things to be used when xenstored starts up, so a
corrupted filesystem may manifest itself here.
 
Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
diff -r 10759a44ce3b -r 4be4126911dc tools/python/xen/xend/xenstore/xsnode.py
--- a/tools/python/xen/xend/xenstore/xsnode.py  Thu Sep 22 15:12:14 2005
+++ b/tools/python/xen/xend/xenstore/xsnode.py  Thu Sep 22 16:50:29 2005
@@ -244,7 +244,9 @@
             if ex.args[0] == errno.ENOENT:
                 return False
             else:
-                raise
+                raise RuntimeError(ex.args[0],
+                                   ex.args[1] +
+                                   (', in exists(%s)' % (str(path))))
 
     def mkdirs(self, path):
         if self.exists(path):
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread> |  
- [Xen-changelog] Added diagnostic message when RuntimeError is	raised inside XenStore.exists.,
Xen patchbot -unstable <=
  
 |  
  
 | 
    | 
  
  
    |   | 
    |