Executable: make the timeout message readable (#46098)

This commit is contained in:
Tamara Dahlgren 2024-08-29 04:46:15 -07:00 committed by GitHub
parent fe8f631b7d
commit b6ff126494
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -275,9 +275,9 @@ def streamify(arg, mode):
long_msg = cmd_line_string + f"\n{result}"
if fail_on_error:
raise ProcessTimeoutError(
f"\nProcess timed out after {timeout}s"
f"We expected the following command to run quickly but\
it did not, please report this as an issue: {long_msg}",
f"\nProcess timed out after {timeout}s. "
"We expected the following command to run quickly but it did not, "
f"please report this as an issue: {long_msg}",
long_message=long_msg,
) from te