hakumizuki пре 4 година
родитељ
комит
90166f0ea0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/server/middlewares/http-error-handler.js

+ 1 - 1
src/server/middlewares/http-error-handler.js

@@ -15,7 +15,7 @@ const isHttpError = (val) => {
     && val.status === val.statusCode;
 };
 
-module.exports = (err, req, res, next) => {
+module.exports = async(err, req, res, next) => {
   // handle if the err is a HttpError instance
   if (isHttpError(err)) {
     const httpError = err;