From cb258577eade1e069daa9352aa80fff00f4bd774 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 23 Nov 2019 10:55:27 +0100 Subject: [PATCH] Fix error --- src/entities/RequestHandler.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/entities/RequestHandler.ts b/src/entities/RequestHandler.ts index b79573a..3b9ca3b 100644 --- a/src/entities/RequestHandler.ts +++ b/src/entities/RequestHandler.ts @@ -88,8 +88,10 @@ export class RequestHandler { */ public error(code : number, message : string) { this.response.status(code).send({ - code: code, - message: message + error: { + code: code, + message: message + } }); throw Error("Could not complete request!");