mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-22 21:39:22 +00:00
Fix error
This commit is contained in:
parent
f87cb17f52
commit
cb258577ea
@ -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({
|
||||||
|
error: {
|
||||||
code: code,
|
code: code,
|
||||||
message: message
|
message: message
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
throw Error("Could not complete request!");
|
throw Error("Could not complete request!");
|
||||||
|
Loading…
Reference in New Issue
Block a user