|
41 | 41 | pass |
42 | 42 | _log = fancylogger.getLogger('easystack', fname=False) |
43 | 43 |
|
| 44 | +EASYSTACK_DOC_URL = 'https://docs.easybuild.io/en/latest/Easystack-files.html' |
| 45 | + |
44 | 46 |
|
45 | 47 | def check_value(value, context): |
46 | 48 | """ |
@@ -137,11 +139,12 @@ def parse(filepath): |
137 | 139 | if len(keys_found) > 1: |
138 | 140 | keys_string = ', '.join(keys_found) |
139 | 141 | msg = "Specifying multiple top level keys (%s) " % keys_string |
140 | | - msg += "in one EasyStack file is currently not supported." |
| 142 | + msg += "in one EasyStack file is currently not supported" |
| 143 | + msg += ", see %s for documentation." % EASYSTACK_DOC_URL |
141 | 144 | raise EasyBuildError(msg) |
142 | 145 | elif len(keys_found) == 0: |
143 | 146 | msg = "Not a valid EasyStack YAML file: no 'easyconfigs' or 'software' top-level key found" |
144 | | - msg += ", see https://docs.easybuild.io/en/latest/Easystack-files.html for documentation." |
| 147 | + msg += ", see %s for documentation." % EASYSTACK_DOC_URL |
145 | 148 | raise EasyBuildError(msg) |
146 | 149 | else: |
147 | 150 | key = keys_found[0] |
@@ -188,7 +191,7 @@ def parse_by_easyconfigs(filepath, easyconfigs, easybuild_version=None, robot=Fa |
188 | 191 | dict_keys = ', '.join(easyconfig.keys()) |
189 | 192 | msg = "Failed to parse easystack file: expected a dictionary with one key (the EasyConfig name), " |
190 | 193 | msg += "instead found keys: %s" % dict_keys |
191 | | - msg += "; see https://docs.easybuild.io/en/latest/Easystack-files.html for documentation." |
| 194 | + msg += ", see %s for documentation." % EASYSTACK_DOC_URL |
192 | 195 | raise EasyBuildError(msg) |
193 | 196 |
|
194 | 197 | return easystack |
|
0 commit comments