fix(core): update
This commit is contained in:
parent
e7d8731fca
commit
d1aa752c8e
@ -21,6 +21,11 @@ export class TypedRequest<T extends plugins.typedRequestInterfaces.ITypedRequest
|
||||
response: null
|
||||
}
|
||||
});
|
||||
const responseBody: T = response.body;
|
||||
if (responseBody.error) {
|
||||
console.log(responseBody.error.text);
|
||||
console.log(responseBody.error.data);
|
||||
}
|
||||
return response.body.response;
|
||||
}
|
||||
}
|
||||
|
@ -33,6 +33,11 @@ export class TypedRouter {
|
||||
console.log(`Cannot find method for ${typedHandler}`);
|
||||
console.log(`Available methods are:`);
|
||||
console.log(availableMethods);
|
||||
typedRequest.error = {
|
||||
text: 'There is no available method for this call on the server side',
|
||||
data: {}
|
||||
};
|
||||
return typedRequest;
|
||||
}
|
||||
|
||||
typedRequest = await typedHandler.addResponse(typedRequest);
|
||||
|
Loading…
Reference in New Issue
Block a user