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

chore: add missing error checks #202

Merged
merged 1 commit into from
Jul 13, 2023
Merged

Conversation

thevilledev
Copy link
Contributor

Overview

  • Add missing error check to main for parsing CLI flags.
  • Add missing error checks to tests for I/O related calls.

If flag.Parse() fails now the error is hidden from the user. Adding the missing checks to tests just improve code quality.

Design of Change

Noticed an issue with CLI flag parsing. Fixed it first. Checked with errcheck linter if the codebase has other missing error checks.

Related Issues/Pull Requests

None

Contributor Checklist

[-] Add relevant docs to upstream Vault repository, or sufficient reasoning why docs won’t be added yet

None needed

[-] Add output for any tests not ran in CI to the PR description (eg, acceptance tests)

None needed

[x] Backwards compatible

Copy link
Contributor

@tomhjp tomhjp left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! LGTM

@tomhjp tomhjp merged commit 1039cbc into hashicorp:main Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants