mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-01 02:31:11 +06:00
forward the worker stderr to the parent process (#8262)
This commit is contained in:
parent
eb6313e823
commit
971c638ee9
@ -896,8 +896,10 @@ def execute_subprocess_async(cmd, env=None, stdin=None, timeout=180, quiet=False
|
||||
|
||||
cmd_str = " ".join(cmd)
|
||||
if result.returncode > 0:
|
||||
stderr = "\n".join(result.stderr)
|
||||
raise RuntimeError(
|
||||
f"'{cmd_str}' failed with returncode {result.returncode} - see the `stderr:` messages from above for details."
|
||||
f"'{cmd_str}' failed with returncode {result.returncode}\n\n"
|
||||
f"The combined stderr from workers follows:\n{stderr}"
|
||||
)
|
||||
|
||||
# check that the subprocess actually did run and produced some output, should the test rely on
|
||||
|
Loading…
Reference in New Issue
Block a user