[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:
parent
07ee2bc39e
commit
337eea81cb
|
@ -23,6 +23,7 @@ class MasterNode(object):
|
||||||
self.channel, item, repr_outcome))
|
self.channel, item, repr_outcome))
|
||||||
|
|
||||||
def send(self, item):
|
def send(self, item):
|
||||||
|
try:
|
||||||
if item is StopIteration:
|
if item is StopIteration:
|
||||||
self.channel.send(42)
|
self.channel.send(42)
|
||||||
else:
|
else:
|
||||||
|
@ -31,6 +32,18 @@ class MasterNode(object):
|
||||||
self.channel.send(item._get_collector_trail())
|
self.channel.send(item._get_collector_trail())
|
||||||
# send start report
|
# send start report
|
||||||
self.reporter(repevent.SendItem(self.channel, item))
|
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 itemgen(colitems, reporter, keyword, reporterror):
|
||||||
def rep(x):
|
def rep(x):
|
||||||
|
|
Loading…
Reference in New Issue