File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ function validateRetryPolicy(obj: any): RetryPolicy {
143
143
! DURATION_REGEX . test ( obj . initialBackoff )
144
144
) {
145
145
throw new Error (
146
- 'Invalid method config retry policy: initialBackoff must be a string consisting of a positive integer followed by s'
146
+ 'Invalid method config retry policy: initialBackoff must be a string consisting of a positive integer or decimal followed by s'
147
147
) ;
148
148
}
149
149
if (
@@ -152,7 +152,7 @@ function validateRetryPolicy(obj: any): RetryPolicy {
152
152
! DURATION_REGEX . test ( obj . maxBackoff )
153
153
) {
154
154
throw new Error (
155
- 'Invalid method config retry policy: maxBackoff must be a string consisting of a positive integer followed by s'
155
+ 'Invalid method config retry policy: maxBackoff must be a string consisting of a positive integer or decimal followed by s'
156
156
) ;
157
157
}
158
158
if (
@@ -228,18 +228,18 @@ function validateHedgingPolicy(obj: any): HedgingPolicy {
228
228
if ( typeof value === 'number' ) {
229
229
if ( ! Object . values ( Status ) . includes ( value ) ) {
230
230
throw new Error (
231
- 'Invlid method config hedging policy: nonFatalStatusCodes value not in status code range'
231
+ 'Invalid method config hedging policy: nonFatalStatusCodes value not in status code range'
232
232
) ;
233
233
}
234
234
} else if ( typeof value === 'string' ) {
235
235
if ( ! Object . values ( Status ) . includes ( value . toUpperCase ( ) ) ) {
236
236
throw new Error (
237
- 'Invlid method config hedging policy: nonFatalStatusCodes value not a status code name'
237
+ 'Invalid method config hedging policy: nonFatalStatusCodes value not a status code name'
238
238
) ;
239
239
}
240
240
} else {
241
241
throw new Error (
242
- 'Invlid method config hedging policy: nonFatalStatusCodes value must be a string or number'
242
+ 'Invalid method config hedging policy: nonFatalStatusCodes value must be a string or number'
243
243
) ;
244
244
}
245
245
}
You can’t perform that action at this time.
0 commit comments