From b9be9519e8f5d6ae9ca9adcdc40a563fa1fcf7aa Mon Sep 17 00:00:00 2001 From: scheibelp Date: Wed, 15 Nov 2017 10:33:59 -0800 Subject: 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. --- lib/spack/spack/directives.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') 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) -- cgit v1.2.3-70-g09d2