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

refactor!: getEvaluation doesnt throw #158

Merged
merged 3 commits into from
Jul 10, 2024
Merged

refactor!: getEvaluation doesnt throw #158

merged 3 commits into from
Jul 10, 2024

Conversation

fabriziodemaria
Copy link
Member

@fabriziodemaria fabriziodemaria commented Jul 5, 2024

It's not consistent if some errors are returned via errorCode and errorMessage fields and other errors (i.e. flagNotFound) are handled via throwing.

This is also the behaviour in OpenFeature.

  • We need to make sure errors are propagated correctly to OpenFeature in toProviderEvaluation()

@nicklasl nicklasl marked this pull request as ready for review July 10, 2024 08:26
nicklasl
nicklasl previously approved these changes Jul 10, 2024
@nicklasl nicklasl force-pushed the eval-no-throw branch 2 times, most recently from 11375fb to 0a4d2b7 Compare July 10, 2024 09:13
@fabriziodemaria
Copy link
Member Author

+1

@fabriziodemaria fabriziodemaria merged commit 09f6b73 into main Jul 10, 2024
6 checks passed
@fabriziodemaria fabriziodemaria deleted the eval-no-throw branch July 10, 2024 13:50
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