diff options
author | Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> | 2024-08-29 04:46:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-29 11:46:15 +0000 |
commit | b6ff126494e2015c9aa06f363d53cb039eabed68 (patch) | |
tree | 9cc7bafae7a6870336b77b44d52e2759b1d0cd83 | |
parent | fe8f631b7d412a6834f6a9a921c047bf03d8b89a (diff) | |
download | spack-b6ff126494e2015c9aa06f363d53cb039eabed68.tar.gz spack-b6ff126494e2015c9aa06f363d53cb039eabed68.tar.bz2 spack-b6ff126494e2015c9aa06f363d53cb039eabed68.tar.xz spack-b6ff126494e2015c9aa06f363d53cb039eabed68.zip |
Executable: make the timeout message readable (#46098)
-rw-r--r-- | lib/spack/spack/util/executable.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/spack/spack/util/executable.py b/lib/spack/spack/util/executable.py index b4974fc9b5..92933221ca 100644 --- a/lib/spack/spack/util/executable.py +++ b/lib/spack/spack/util/executable.py @@ -275,9 +275,9 @@ class Executable: 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 |