Skip to content

Conversation

@mattfarina
Copy link
Member

Two changes happened:

  1. Error messages follow community standards on case
  2. Error messages passed in format strings use %w so error handling tools can operate on them.

Two changes happened:
1. Error messages follow community standards on case
2. Error messages passed in format strings use %w so error handling tools
   can operate on them.

Signed-off-by: Matt Farina <[email protected]>
for _, p := range eparts {
if p == "" {
return ErrInvalidMetadata
return ErrInvalidPrerelease
Copy link
Member Author

Choose a reason for hiding this comment

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

Note, this change is because the wrong error was being returned before.

Copy link

@robertsirc robertsirc left a comment

Choose a reason for hiding this comment

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

LGTM

@mattfarina mattfarina merged commit dc05094 into Masterminds:master Jun 26, 2025
13 checks passed
@mattfarina mattfarina deleted the lowercase-error-strings branch June 26, 2025 16:45
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