Skip to content

Commit

Permalink
fix: catch flag fetch timeout error when not in debug mode (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyiuhc authored Nov 18, 2024
1 parent a545141 commit 59da6d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/experiment-browser/src/experimentClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -711,8 +711,8 @@ export class ExperimentClient implements Client {
this.flags.clear();
this.flags.putAll(flags);
} catch (e) {
if (this.config.debug && e instanceof TimeoutError) {
console.debug(e);
if (e instanceof TimeoutError) {
this.config.debug && console.debug(e);
} else {
throw e;
}
Expand Down

0 comments on commit 59da6d4

Please sign in to comment.