summary refs log tree commit diff
path: root/src/api/middlewares/ErrorHandler.ts
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-20 03:27:03 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-20 03:27:03 +0200
commit04dea8d788acfaf485f4aa9ad255e39f6aac2a08 (patch)
tree2a61e45ef6f313012a585a0a80c1fa5bfe3ddae8 /src/api/middlewares/ErrorHandler.ts
parentFix merge conflicts (diff)
downloadserver-04dea8d788acfaf485f4aa9ad255e39f6aac2a08.tar.xz
prettier
Diffstat (limited to 'src/api/middlewares/ErrorHandler.ts')
-rw-r--r--src/api/middlewares/ErrorHandler.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/api/middlewares/ErrorHandler.ts b/src/api/middlewares/ErrorHandler.ts

index 8a046e06..813adc18 100644 --- a/src/api/middlewares/ErrorHandler.ts +++ b/src/api/middlewares/ErrorHandler.ts
@@ -1,6 +1,5 @@ +import { ApiError, FieldError, HTTPError } from "@fosscord/util"; import { NextFunction, Request, Response } from "express"; -import { HTTPError } from "@fosscord/util"; -import { ApiError, FieldError } from "@fosscord/util"; const EntityNotFoundErrorRegex = /"(\w+)"/; export function ErrorHandler(error: Error, req: Request, res: Response, next: NextFunction) {