Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: panic introduced by #8453 #8834

Merged
merged 3 commits into from
Sep 9, 2020
Merged

fix: panic introduced by #8453 #8834

merged 3 commits into from
Sep 9, 2020

Conversation

greut
Copy link
Contributor

@greut greut commented Sep 5, 2020

if err is nil, then doing err.Error() triggers a panic.

Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @greut! Thanks for this fix!

It looks like from the test-nomad CI job that there's a test failure introduced in TestJobEndpoint_Register_Vault_MultiNamespaces .

Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
@greut
Copy link
Contributor Author

greut commented Sep 8, 2020

@tgross I overlooked the rpc part. Thanks for pointing the test out. This fix can be reduced to err != nil && if need be.

Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @greut!

@tgross tgross merged commit 8976261 into hashicorp:master Sep 9, 2020
@greut greut deleted the fix-panic branch September 10, 2020 06:45
cgbaker added a commit that referenced this pull request Sep 10, 2020
fredrikhgrelland pushed a commit to fredrikhgrelland/nomad that referenced this pull request Sep 28, 2020
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
fredrikhgrelland pushed a commit to fredrikhgrelland/nomad that referenced this pull request Sep 28, 2020
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants