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

fix: msg missing when providers return err resolutions #1134

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

toddbaert
Copy link
Member

@toddbaert toddbaert commented Feb 6, 2025

Fixes an issue where the error message was lost if a provider returned a resolution which had an error code (instead of throwing).

Frankly I don't think testing this is worth it. I debating making the second arg to this function message: string | undefined instead of message?: string (which would force a second arg to be set) but that would be breaking and we'd need to release a core v2 to avoid possible tsc issues in consumers, which I don't think is worth it ether.

@toddbaert toddbaert requested a review from a team as a code owner February 6, 2025 18:10
@toddbaert toddbaert force-pushed the fix/inst-by-code-message branch 2 times, most recently from 5728172 to fb70631 Compare February 6, 2025 18:16
@toddbaert toddbaert force-pushed the fix/inst-by-code-message branch from fb70631 to 39076fa Compare February 6, 2025 18:16
@beeme1mr beeme1mr merged commit bc9f6e4 into main Feb 6, 2025
11 checks passed
@beeme1mr beeme1mr deleted the fix/inst-by-code-message branch February 6, 2025 18:39
@beeme1mr
Copy link
Member

beeme1mr commented Feb 6, 2025

Merging because it's low risk and fixes a bug.

github-merge-queue bot pushed a commit that referenced this pull request Feb 7, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.17.1](server-sdk-v1.17.0...server-sdk-v1.17.1)
(2025-02-07)


### 🐛 Bug Fixes

* msg missing when providers return err resolutions
([#1134](#1134))
([bc9f6e4](bc9f6e4))


### 🧹 Chore

* update core peer
([8bbd43e](8bbd43e))


### 📚 Documentation

* fix eval context link
([#1132](#1132))
([f6bc695](f6bc695))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Signed-off-by: OpenFeature Bot <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Feb 7, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.4.1](web-sdk-v1.4.0...web-sdk-v1.4.1)
(2025-02-07)


### 🐛 Bug Fixes

* msg missing when providers return err resolutions
([#1134](#1134))
([bc9f6e4](bc9f6e4))


### 🧹 Chore

* update core peer
([8bbd43e](8bbd43e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Signed-off-by: OpenFeature Bot <[email protected]>
Signed-off-by: Todd Baert <[email protected]>
Co-authored-by: Todd Baert <[email protected]>
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