Skip to content

Commit 589d195

Browse files
authored
AMDGCN: Include generic regex in error message
1 parent da91065 commit 589d195

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

easybuild/tools/options.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,8 +1011,8 @@ def validate(self):
10111011
faulty_amdgcn_ccs = [x for x in self.options.amdgcn_capabilities
10121012
if not amdgcn_cc_regex.match(x) and not amdgcn_generic_regex.match(x)]
10131013
if faulty_amdgcn_ccs:
1014-
error_msg = "Incorrect values in --amdgcn-capabilities (expected pattern: '%s'): %s"
1015-
error_msgs.append(error_msg % (amdgcn_cc_regex.pattern, ', '.join(faulty_amdgcn_ccs)))
1014+
error_msg = "Incorrect values in --amdgcn-capabilities (expected pattern: '%s' or '%s'): %s"
1015+
error_msgs.append(error_msg % (amdgcn_cc_regex.pattern, amdgcn_generic_regex.pattern, ', '.join(faulty_amdgcn_ccs)))
10161016

10171017
if error_msgs:
10181018
raise EasyBuildError(

0 commit comments

Comments
 (0)