projects
/
squeep-api-dingus
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix and enforce indent rules
[squeep-api-dingus]
/
lib
/
dingus.js
diff --git
a/lib/dingus.js
b/lib/dingus.js
index 1cbfd72b8c95ad1d3fe3de38f7a1840349887a15..0143585c1d83732a9e064d2f8687596af88f42be 100644
(file)
--- 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);
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 {
} else if (e instanceof URIError) {
handler = this.handlerBadRequest.bind(this);
} else {
@@
-651,7
+651,7
@@
class Dingus {
* @param {http.ServerResponse} res
* @param {object} ctx
*/
* @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);
}
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
*/
* @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);
}
this.setResponseType(this.responseTypes, req, res, ctx);
throw new ResponseError(Enum.ErrorResponse.InternalServerError);
}