1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-26 07:19:23 +00:00

Fix error

This commit is contained in:
Pierre HUBERT 2019-11-23 10:55:27 +01:00
parent f87cb17f52
commit cb258577ea

View File

@ -88,8 +88,10 @@ export class RequestHandler {
*/ */
public error(code : number, message : string) { public error(code : number, message : string) {
this.response.status(code).send({ this.response.status(code).send({
code: code, error: {
message: message code: code,
message: message
}
}); });
throw Error("Could not complete request!"); throw Error("Could not complete request!");