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 error message for missing key #339

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

bewuethr
Copy link

This fixes the grammar in the error message for a missing key: "key %q not exists" to "key %q does not exist"

Link to the issue: n/a

Checklist

  • I agree to follow the Code of Conduct by submitting this pull request.
  • I have read and acknowledge the Contributing guide.
  • I have added test cases to cover the new code.

I didn't add new test cases, but the behaviour is unchanged and tested here already:

ini/section_test.go

Lines 126 to 129 in b2f570e

t.Run("key not exists", func(t *testing.T) {
_, err := f.Section("").GetKey("404")
require.Error(t, err)
})

This test is independent of the error message itself.

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.

1 participant