Fix unbound variable in error case in build_and_install_software#4843
Merged
smoors merged 1 commit intoeasybuilders:developfrom Apr 22, 2025
Merged
Fix unbound variable in error case in build_and_install_software#4843smoors merged 1 commit intoeasybuilders:developfrom
build_and_install_software#4843smoors merged 1 commit intoeasybuilders:developfrom
Conversation
build_and_install_software
smoors
approved these changes
Apr 22, 2025
Contributor
smoors
left a comment
There was a problem hiding this comment.
i was hit by the same bug, and this PR fixed it
lgtm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@dagonzalezfo Can you please double check this is what you intended in https://github.com/easybuilders/easybuild-framework/pull/4534/files#diff-7ee72a681a6748afac9e6e8e3ff33fd2b76c661eff64435388ec03895cf8a767R177
The bug results in this crash:
We have 3 cases:
How I understood the intended logic:
test_msgas the message. I.e. just rewrite the EasyBuildError messageMaybe we should rather:
error.msg = test_msg(not create a new instance which would be logged)test_msgand the default exit code