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

Adds descriptive error when failing to make concrete #51

Merged

Conversation

wirecat
Copy link
Contributor

@wirecat wirecat commented Apr 12, 2023

If using lazy loading and the call to a resolver when making a concrete fails, that error wasn't wrapped and caused confusion since we didn't know which abstraction we were attempting to satisfy.

Wrapping error so we know that:
a) Error occurred during resolve call.
b) What abstraction we were trying to resolve.

This should make it easier to debug these failures in lazy loading situations.

If using lazy loading and the call to a resolver when making a concrete
fails, that error wasn't wrapped and caused confusion since we didn't
know which abstraction we were attempting to satisfy.

Wrapping error so we know that:
  a) Error occurred during resolve call.
  b) What abstraction we were trying to resolve.

This should make it easier to debug these failures in lazy loading situations.
@miladrahimi miladrahimi merged commit b096c2b into golobby:master Apr 12, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants