summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorscheibelp <scheibel1@llnl.gov>2017-11-15 10:33:59 -0800
committerGitHub <noreply@github.com>2017-11-15 10:33:59 -0800
commitb9be9519e8f5d6ae9ca9adcdc40a563fa1fcf7aa (patch)
treeda6ff177961abf9a26153dab32e25077732168f4 /lib
parent2eb7fabe622c71d6848b9b04b3ee82ba02b9c54c (diff)
downloadspack-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.py8
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)