Skip to content

Commit 7d52bec

Browse files
committed
update
1 parent 5436620 commit 7d52bec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/schema/validator.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function validateUserVariantAllocation(UserAllocations: any) {
110110

111111
for (const allocation of UserAllocations) {
112112
if (typeof allocation !== "object") {
113-
throw new TypeError("Elements in 'user' allocation must be an object.");
113+
throw new TypeError("Elements in variant 'user' allocation must be an object.");
114114
}
115115
if (typeof allocation.variant !== "string") {
116116
throw new TypeError("User allocation 'variant' must be a string.");
@@ -133,7 +133,7 @@ function validateGroupVariantAllocation(groupAllocations: any) {
133133

134134
for (const allocation of groupAllocations) {
135135
if (typeof allocation !== "object") {
136-
throw new TypeError("Elements in 'group' allocation must be an object.");
136+
throw new TypeError("Elements in variant 'group' allocation must be an object.");
137137
}
138138
if (typeof allocation.variant !== "string") {
139139
throw new TypeError("Group allocation 'variant' must be a string.");
@@ -156,7 +156,7 @@ function validatePercentileVariantAllocation(percentileAllocations: any) {
156156

157157
for (const allocation of percentileAllocations) {
158158
if (typeof allocation !== "object") {
159-
throw new TypeError("Elements in 'percentile' allocation must be an object.");
159+
throw new TypeError("Elements in variant 'percentile' allocation must be an object.");
160160
}
161161
if (typeof allocation.variant !== "string") {
162162
throw new TypeError("Percentile allocation 'variant' must be a string.");

0 commit comments

Comments
 (0)