Show More
@@ -367,7 +367,8 class SubprocessIOChunker(object): | |||||
367 | pass |
|
367 | pass | |
368 | bg_out.stop() |
|
368 | bg_out.stop() | |
369 | bg_err.stop() |
|
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 | self.process = _p |
|
373 | self.process = _p | |
373 | self.output = bg_out |
|
374 | self.output = bg_out | |
@@ -378,7 +379,8 class SubprocessIOChunker(object): | |||||
378 |
|
379 | |||
379 | def next(self): |
|
380 | def next(self): | |
380 | if self.process.poll(): |
|
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 | return self.output.next() |
|
384 | return self.output.next() | |
383 |
|
385 | |||
384 | def throw(self, type, value=None, traceback=None): |
|
386 | def throw(self, type, value=None, traceback=None): |
General Comments 0
You need to be logged in to leave comments.
Login now