diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-27 11:10:42 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-27 11:10:42 +0200 |
commit | 2dbbd21f734b6c0785d5a02d8aed71f7f32d4cff (patch) | |
tree | b434b23a73779008964d837f1e316604de61a29e /api/src/middlewares | |
parent | :sparkles: use RelationId (diff) | |
download | server-2dbbd21f734b6c0785d5a02d8aed71f7f32d4cff.tar.xz |
:construction: api
Diffstat (limited to 'api/src/middlewares')
-rw-r--r-- | api/src/middlewares/ErrorHandler.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/api/src/middlewares/ErrorHandler.ts b/api/src/middlewares/ErrorHandler.ts index d080e498..8e2cd923 100644 --- a/api/src/middlewares/ErrorHandler.ts +++ b/api/src/middlewares/ErrorHandler.ts @@ -2,6 +2,7 @@ import { NextFunction, Request, Response } from "express"; import { HTTPError } from "lambert-server"; import { FieldError } from "../util/instanceOf"; +// TODO: update with new body/typorm validation export function ErrorHandler(error: Error, req: Request, res: Response, next: NextFunction) { if (!error) next(); |