File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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." ) ;
You can’t perform that action at this time.
0 commit comments