debuggers.hg
changeset 7006:95e589a9b2f6
Added debugging message to exception on write.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Signed-off-by: Ewan Mellor <ewan@xensource.com>
author | emellor@ewan |
---|---|
date | Tue Sep 20 17:19:19 2005 +0100 (2005-09-20) |
parents | d3bc8314b6f5 |
children | 1c95ad754ad4 |
files | tools/python/xen/xend/xenstore/xsnode.py |
line diff
1.1 --- a/tools/python/xen/xend/xenstore/xsnode.py Tue Sep 20 14:44:49 2005 +0000 1.2 +++ b/tools/python/xen/xend/xenstore/xsnode.py Tue Sep 20 17:19:19 2005 +0100 1.3 @@ -272,8 +272,11 @@ class XenStore: 1.4 def write(self, path, data): 1.5 try: 1.6 self.getxs().write(path, data) 1.7 - except Exception, ex: 1.8 - raise 1.9 + except RuntimeError, ex: 1.10 + raise RuntimeError(ex.args[0], 1.11 + ex.args[1] + 1.12 + (', while writing %s : %s' % (str(path), 1.13 + str(data)))) 1.14 1.15 def begin(self, path): 1.16 self.getxs().transaction_start(path)