Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 39076fa

Browse files
committedFeb 6, 2025·
fix: msg missing when providers return err resolutions
Signed-off-by: Todd Baert <[email protected]>
1 parent f6bc695 commit 39076fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎packages/server/src/client/internal/open-feature-client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ export class OpenFeatureClient implements Client {
298298
};
299299

300300
if (resolutionDetails.errorCode) {
301-
const err = instantiateErrorByErrorCode(resolutionDetails.errorCode);
301+
const err = instantiateErrorByErrorCode(resolutionDetails.errorCode, resolutionDetails.errorMessage);
302302
await this.errorHooks(allHooksReversed, hookContext, err, options);
303303
evaluationDetails = this.getErrorEvaluationDetails(flagKey, defaultValue, err, resolutionDetails.flagMetadata);
304304
} else {

‎packages/web/src/client/internal/open-feature-client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ export class OpenFeatureClient implements Client {
253253
};
254254

255255
if (resolutionDetails.errorCode) {
256-
const err = instantiateErrorByErrorCode(resolutionDetails.errorCode);
256+
const err = instantiateErrorByErrorCode(resolutionDetails.errorCode, resolutionDetails.errorMessage);
257257
this.errorHooks(allHooksReversed, hookContext, err, options);
258258
evaluationDetails = this.getErrorEvaluationDetails(flagKey, defaultValue, err, resolutionDetails.flagMetadata);
259259
} else {

0 commit comments

Comments
 (0)
Please sign in to comment.