Skip to content

Commit 47ba357

Browse files
committed
Fix typo in service config validation error messages
1 parent 95516b6 commit 47ba357

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/grpc-js/src/service-config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,14 @@ function validateRetryPolicy(obj: any): RetryPolicy {
133133
for (const value of obj.retryableStatusCodes) {
134134
if (typeof value === 'number') {
135135
if (!Object.values(Status).includes(value)) {
136-
throw new Error('Invlid method config retry policy: retryableStatusCodes value not in status code range');
136+
throw new Error('Invalid method config retry policy: retryableStatusCodes value not in status code range');
137137
}
138138
} else if (typeof value === 'string') {
139139
if (!Object.values(Status).includes(value.toUpperCase())) {
140-
throw new Error('Invlid method config retry policy: retryableStatusCodes value not a status code name');
140+
throw new Error('Invalid method config retry policy: retryableStatusCodes value not a status code name');
141141
}
142142
} else {
143-
throw new Error('Invlid method config retry policy: retryableStatusCodes value must be a string or number');
143+
throw new Error('Invalid method config retry policy: retryableStatusCodes value must be a string or number');
144144
}
145145
}
146146
return {

0 commit comments

Comments
 (0)