Skip to content

Commit d93091d

Browse files
New label
1 parent d67582d commit d93091d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/evaluator/Engine.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { get, isString } from '../utils/lang';
22
import { parser } from './parser';
33
import { keyParser } from '../utils/key';
44
import { thenable } from '../utils/promise/thenable';
5-
import { NO_CONDITION_MATCH, SPLIT_ARCHIVED, SPLIT_KILLED } from '../utils/labels';
5+
import { NO_CONDITION_MATCH, SPLIT_ARCHIVED, SPLIT_KILLED, PREREQUISITES_NOT_MET } from '../utils/labels';
66
import { CONTROL } from '../utils/constants';
77
import { ISplit, MaybeThenable } from '../dtos/types';
88
import SplitIO from '../../types/splitio';
@@ -36,7 +36,7 @@ export function engineParser(log: ILogger, split: ISplit, storage: IStorageSync
3636
log.debug(ENGINE_DEFAULT, ['Prerequisite not met']);
3737
return {
3838
treatment: defaultTreatment,
39-
label: NO_CONDITION_MATCH
39+
label: PREREQUISITES_NOT_MET
4040
};
4141
}
4242

src/utils/labels/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ export const EXCEPTION = 'exception';
66
export const SPLIT_ARCHIVED = 'archived';
77
export const NOT_IN_SPLIT = 'not in split';
88
export const UNSUPPORTED_MATCHER_TYPE = 'targeting rule type unsupported by sdk';
9+
export const PREREQUISITES_NOT_MET = 'prerequisites not met';

0 commit comments

Comments
 (0)