-
Notifications
You must be signed in to change notification settings - Fork 63
fix: update error formatting and test naming #282
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
Conversation
This is for addressing the change in go1.24 golang/go#60529, which suppress the error on non-constant format and no args.
/cc @jpbetz |
/lgtm |
@@ -157,7 +157,7 @@ func (v *validatingObjectWalker) visitListItems(t *schema.List, list value.List) | |||
func (v *validatingObjectWalker) doList(t *schema.List) (errs ValidationErrors) { | |||
list, err := listValue(v.allocator, v.value) | |||
if err != nil { | |||
return errorf(err.Error()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be "%w" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is following the same pattern as
structured-merge-diff/typed/merge.go
Line 163 in 0ee1c65
return nil, errorf("%v: %v", prefix, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, SGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jpbetz, yongruilin The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This is for addressing the change in go1.24
golang/go#60529, which suppress the error on non-constant format and no args.
Fix: #281