Skip to content

Commit

Permalink
fix(validation): error typo "unknown" (#3304)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt authored Aug 5, 2020
1 parent 9280037 commit 4956041
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rpc/client/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, '');
}
2 changes: 1 addition & 1 deletion src/rpc/server/dispatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, '');
};
}
Expand Down

0 comments on commit 4956041

Please sign in to comment.