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

Improve error messages in ygot.Merge. #815

Merged
merged 5 commits into from
Apr 17, 2023
Merged

Improve error messages in ygot.Merge. #815

merged 5 commits into from
Apr 17, 2023

Conversation

wenovus
Copy link
Collaborator

@wenovus wenovus commented Apr 15, 2023

Fail slow: gather error messages about conflicting fields prior to returning to user.

Also print the access path to the user so they know which fields contain the conflict.

Fail slow: gather error messages about conflicting fields prior to returning to user.

Also print the access path to the user so they know which fields contain
the conflict.
@wenovus wenovus requested a review from liulk April 15, 2023 00:02
@github-actions
Copy link

github-actions bot commented Apr 15, 2023

Coverage Status

Coverage: 90.222% (+0.02%) from 90.205% when pulling dc3679b on improve-merge-error into 737e8fe on master.

Copy link
Contributor

@liulk liulk left a comment

Choose a reason for hiding this comment

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

Small nit about how to document compat code, but otherwise LGTM.

ygot/join.go Outdated Show resolved Hide resolved
ygot/join.go Outdated Show resolved Hide resolved
wenovus and others added 2 commits April 17, 2023 12:12
@wenovus wenovus merged commit 770dbdc into master Apr 17, 2023
@wenovus wenovus deleted the improve-merge-error branch April 17, 2023 20:04
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