[svn r38091] Increase verbosity in case of error. The thing is that we usually don't get

remote error, so let's print it.

--HG--
branch : trunk
This commit is contained in:
fijal 2007-02-07 19:25:01 +01:00
parent 07ee2bc39e
commit 337eea81cb
1 changed files with 20 additions and 7 deletions

View File

@ -23,6 +23,7 @@ class MasterNode(object):
self.channel, item, repr_outcome))
def send(self, item):
try:
if item is StopIteration:
self.channel.send(42)
else:
@ -31,6 +32,18 @@ class MasterNode(object):
self.channel.send(item._get_collector_trail())
# send start report
self.reporter(repevent.SendItem(self.channel, item))
except IOError:
try:
channel._getremoterror()
except:
# if this were not remote, we've got no clue
excinfo = py.code.ExceptionInfo()
for i in excinfo.traceback:
print str(i)[2:-1]
print excinfo
else:
raise
def itemgen(colitems, reporter, keyword, reporterror):
def rep(x):