Skip to content

Commit 1b4e95a

Browse files
lexmingboegel
andauthored
use VALUE_ERROR as exit code for wrong commit hashes in easyconfigs
Co-authored-by: Kenneth Hoste <[email protected]>
1 parent a5e805a commit 1b4e95a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

easybuild/tools/github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def download_repo(repo=GITHUB_EASYCONFIGS_REPO, branch=None, commit=None, accoun
393393
else:
394394
error_msg = r"Specified commit SHA %s for downloading %s/%s is not valid, "
395395
error_msg += "must be full SHA-1 (40 chars)"
396-
raise EasyBuildError(error_msg, commit, account, repo, exit_code=EasyBuildExit.OPTION_ERROR)
396+
raise EasyBuildError(error_msg, commit, account, repo, exit_code=EasyBuildExit.VALUE_ERROR)
397397

398398
extracted_dir_name = '%s-%s' % (repo, commit)
399399
base_name = '%s.tar.gz' % commit

0 commit comments

Comments
 (0)