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

Combine multiple errors #1515

Open
jamietanna opened this issue Mar 25, 2024 · 0 comments · May be fixed by #1598
Open

Combine multiple errors #1515

jamietanna opened this issue Mar 25, 2024 · 0 comments · May be fixed by #1598
Labels

Comments

@jamietanna
Copy link
Collaborator

i.e.

for fieldName, field := range a.AdditionalProperties {
object[fieldName], err = json.Marshal(field)
if err != nil {
return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err)
}
}
could use errors.Join

@eyasy1217 eyasy1217 linked a pull request May 6, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant