ia64/xen-unstable

changeset 7023:4be4126911dc

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@xensource.com>
author emellor@ewan
date Thu Sep 22 17:50:29 2005 +0100 (2005-09-22)
parents 10759a44ce3b
children f5e33f4d0238
files tools/python/xen/xend/xenstore/xsnode.py
line diff
     1.1 --- a/tools/python/xen/xend/xenstore/xsnode.py	Thu Sep 22 16:12:14 2005 +0100
     1.2 +++ b/tools/python/xen/xend/xenstore/xsnode.py	Thu Sep 22 17:50:29 2005 +0100
     1.3 @@ -244,7 +244,9 @@ class XenStore:
     1.4              if ex.args[0] == errno.ENOENT:
     1.5                  return False
     1.6              else:
     1.7 -                raise
     1.8 +                raise RuntimeError(ex.args[0],
     1.9 +                                   ex.args[1] +
    1.10 +                                   (', in exists(%s)' % (str(path))))
    1.11  
    1.12      def mkdirs(self, path):
    1.13          if self.exists(path):