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

[Core] Accumulate errors in blueprint.WiringSpec #32

Closed
vaastav opened this issue Sep 20, 2023 · 1 comment
Closed

[Core] Accumulate errors in blueprint.WiringSpec #32

vaastav opened this issue Sep 20, 2023 · 1 comment

Comments

@vaastav
Copy link
Contributor

vaastav commented Sep 20, 2023

In GitLab by @JonathanMace on Sep 20, 2023, 22:42

Some wiring spec methods and convenience methods might return errors, but it is tedious and verbose to expect a wiring spec to check error return values for all wiring spec calls.

The golang suggested alternative approach can be used here; we can accumulate errors in the blueprint.WiringSpec. Then to do error checking, the wiring spec can provide a method Err() to return any accumulated error(s). For wiring specs, this means they can do error checking, but without verbose error checking.

@vaastav
Copy link
Contributor Author

vaastav commented Sep 20, 2023

In GitLab by @JonathanMace on Sep 21, 2023, 24:28

Implemented by #11

@vaastav vaastav closed this as completed Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant