Skip to content

[BUG] Error hooks only run if the provider throws #925

Closed
@beeme1mr

Description

@beeme1mr

Observed behavior

The error hook only runs if the provider throws an exception. However, it's possible for a provider to return an error code in the ResolutionDetails.

Expected Behavior

The error hook runs if the ResolutionDetails contains an errorCode

Steps to reproduce

  1. Register a provider that returns a ResolutionDetails object with an errorCode
  2. Register a hook that relies on the error hook
  3. Evaluate a flag

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions