diff options
author | scheibelp <scheibel1@llnl.gov> | 2017-11-15 10:33:59 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-15 10:33:59 -0800 |
commit | b9be9519e8f5d6ae9ca9adcdc40a563fa1fcf7aa (patch) | |
tree | da6ff177961abf9a26153dab32e25077732168f4 /lib | |
parent | 2eb7fabe622c71d6848b9b04b3ee82ba02b9c54c (diff) | |
download | spack-b9be9519e8f5d6ae9ca9adcdc40a563fa1fcf7aa.tar.gz spack-b9be9519e8f5d6ae9ca9adcdc40a563fa1fcf7aa.tar.bz2 spack-b9be9519e8f5d6ae9ca9adcdc40a563fa1fcf7aa.tar.xz spack-b9be9519e8f5d6ae9ca9adcdc40a563fa1fcf7aa.zip |
Fix truncated error messages in directives (#6320)
Fixes #6299
Error messages in 'directives' were split across multiple lines and not
properly concatenated, which led to truncated messages.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/directives.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/spack/spack/directives.py b/lib/spack/spack/directives.py index 7255875541..84404af095 100644 --- a/lib/spack/spack/directives.py +++ b/lib/spack/spack/directives.py @@ -522,8 +522,8 @@ def resource(**kwargs): # Check if the path is relative if os.path.isabs(destination): - message = 'The destination keyword of a resource directive ' - 'can\'t be an absolute path.\n' + message = ('The destination keyword of a resource directive ' + 'can\'t be an absolute path.\n') message += "\tdestination : '{dest}\n'".format(dest=destination) raise RuntimeError(message) @@ -534,8 +534,8 @@ def resource(**kwargs): ) # Normalized absolute path if test_path not in normalized_destination: - message = "The destination folder of a resource must fall " - "within the main package stage directory.\n" + message = ("The destination folder of a resource must fall " + "within the main package stage directory.\n") message += "\tdestination : '{dest}'\n".format(dest=destination) raise RuntimeError(message) |