From 4956041109d75e2672ccb76b7df61a0379dccf4c Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Wed, 5 Aug 2020 20:44:32 +0200 Subject: [PATCH] fix(validation): error typo "unknown" (#3304) --- src/rpc/client/connection.ts | 2 +- src/rpc/server/dispatcher.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rpc/client/connection.ts b/src/rpc/client/connection.ts index 37258e179eeca..14d539aed0b1a 100644 --- a/src/rpc/client/connection.ts +++ b/src/rpc/client/connection.ts @@ -242,6 +242,6 @@ const scheme = createScheme(tChannel); function validateParams(type: string, method: string, params: any): any { const name = type + method[0].toUpperCase() + method.substring(1) + 'Params'; if (!scheme[name]) - throw new ValidationError(`Uknown scheme for ${type}.${method}`); + throw new ValidationError(`Unknown scheme for ${type}.${method}`); return scheme[name](params, ''); } diff --git a/src/rpc/server/dispatcher.ts b/src/rpc/server/dispatcher.ts index 21c055bbf756d..57a76cbdbc8f9 100644 --- a/src/rpc/server/dispatcher.ts +++ b/src/rpc/server/dispatcher.ts @@ -143,7 +143,7 @@ export class DispatcherConnection { this._validateParams = (type: string, method: string, params: any): any => { const name = type + method[0].toUpperCase() + method.substring(1) + 'Params'; if (!scheme[name]) - throw new ValidationError(`Uknown scheme for ${type}.${method}`); + throw new ValidationError(`Unknown scheme for ${type}.${method}`); return scheme[name](params, ''); }; }