fix(core): update

This commit is contained in:
Philipp Kunz 2020-06-16 22:25:20 +00:00
parent 718feb74ae
commit bb0271e021

View File

@ -88,13 +88,7 @@ export class TypedRouter {
const typedHandler = this.getTypedHandlerForMethod(typedRequestArg.method);
if (!typedHandler) {
const availableMethods: string[] = [];
await this.handlerMap.forEach(async handler => {
availableMethods.push(handler.method);
});
console.log(`Cannot find handler for methodname ${typedRequestArg.method}`);
console.log(`Available methods are:`);
console.log(availableMethods);
typedRequestArg.error = {
text: 'There is no available method for this call on the server side',
data: {}