Skip to content

Commit 6c000d4

Browse files
committed
enhance download instructions
1 parent e887991 commit 6c000d4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

easybuild/framework/easyblock.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
import time
5454
import traceback
5555
from datetime import datetime
56+
from textwrap import indent
5657

5758
import easybuild.tools.environment as env
5859
import easybuild.tools.toolchain as toolchain
@@ -952,7 +953,8 @@ def obtain_file(self, filename, extension=False, urls=None, download_filename=No
952953
if download_instructions is None:
953954
download_instructions = self.cfg['download_instructions']
954955
if download_instructions is not None and download_instructions != "":
955-
msg = "\nDownload instructions:\n\n" + download_instructions + '\n'
956+
msg = "\nDownload instructions:\n\n" + indent(download_instructions, ' ') + '\n\n'
957+
msg += "Make the files available in the active source path: %s\n" % ':'.join(source_paths())
956958
print_msg(msg, prefix=False, stderr=True)
957959
error_msg += "please follow the download instructions above, and make the file available "
958960
error_msg += "in the active source path (%s)" % ':'.join(source_paths())

0 commit comments

Comments
 (0)