##// END OF EJS Templates
dont format errors to string in subprocessio
marcink -
r2572:71fc1c98 beta
parent child Browse files
Show More
@@ -367,7 +367,8 class SubprocessIOChunker(object):
367 367 pass
368 368 bg_out.stop()
369 369 bg_err.stop()
370 raise EnvironmentError("Subprocess exited due to an error.\n" + "".join(bg_err))
370 err = '%r' % ''.join(bg_err)
371 raise EnvironmentError("Subprocess exited due to an error.\n" + err)
371 372
372 373 self.process = _p
373 374 self.output = bg_out
@@ -378,7 +379,8 class SubprocessIOChunker(object):
378 379
379 380 def next(self):
380 381 if self.process.poll():
381 raise EnvironmentError("Subprocess exited due to an error:\n" + ''.join(self.error))
382 err = '%r' % ''.join(self.error)
383 raise EnvironmentError("Subprocess exited due to an error:\n" + err)
382 384 return self.output.next()
383 385
384 386 def throw(self, type, value=None, traceback=None):
General Comments 0
You need to be logged in to leave comments. Login now