diff --git a/lib/spack/spack/util/executable.py b/lib/spack/spack/util/executable.py index b4974fc9b57..92933221cad 100644 --- a/lib/spack/spack/util/executable.py +++ b/lib/spack/spack/util/executable.py @@ -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