X-Git-Url: http://git.squeep.com/?p=squeep-api-dingus;a=blobdiff_plain;f=lib%2Fdingus.js;h=0143585c1d83732a9e064d2f8687596af88f42be;hp=1cbfd72b8c95ad1d3fe3de38f7a1840349887a15;hb=110a5fe8f19b564e76162de567a6bffe2a6285d1;hpb=c980310d2de988d5f4e3c932eb77ebe83daa27b9 diff --git a/lib/dingus.js b/lib/dingus.js index 1cbfd72..0143585 100644 --- a/lib/dingus.js +++ b/lib/dingus.js @@ -274,7 +274,7 @@ class Dingus { default: this.logger.error(_scope, 'unknown dingus error', { error: e }); handler = this.handlerInternalServerError.bind(this); - } + } } else if (e instanceof URIError) { handler = this.handlerBadRequest.bind(this); } else { @@ -651,7 +651,7 @@ class Dingus { * @param {http.ServerResponse} res * @param {object} ctx */ - async handlerBadRequest(req, res, ctx) { + async handlerBadRequest(req, res, ctx) { this.setResponseType(this.responseTypes, req, res, ctx); throw new ResponseError(Enum.ErrorResponse.BadRequest); } @@ -662,7 +662,7 @@ class Dingus { * @param {http.ServerResponse} res * @param {object} ctx */ - async handlerInternalServerError(req, res, ctx) { + async handlerInternalServerError(req, res, ctx) { this.setResponseType(this.responseTypes, req, res, ctx); throw new ResponseError(Enum.ErrorResponse.InternalServerError); }