[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,14 +23,27 @@ class MasterNode(object):
 | 
				
			||||||
                        self.channel, item, repr_outcome))
 | 
					                        self.channel, item, repr_outcome))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def send(self, item):
 | 
					    def send(self, item):
 | 
				
			||||||
        if item is StopIteration:
 | 
					        try:
 | 
				
			||||||
            self.channel.send(42)
 | 
					            if item is StopIteration:
 | 
				
			||||||
        else:
 | 
					                self.channel.send(42)
 | 
				
			||||||
            self.pending.insert(0, item)
 | 
					            else:
 | 
				
			||||||
 | 
					                self.pending.insert(0, item)
 | 
				
			||||||
            #itemspec = item.listnames()[1:]
 | 
					            #itemspec = item.listnames()[1:]
 | 
				
			||||||
            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