From c68488d33d0b783991afac15a65816a1c6a0bfdf Mon Sep 17 00:00:00 2001 From: xnacly Date: Wed, 18 Aug 2021 16:53:35 +0200 Subject: [PATCH] fixed wrong wording in HTTPError --- cdn/src/routes/attachments.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdn/src/routes/attachments.ts b/cdn/src/routes/attachments.ts index ee73ac4d..59845c94 100644 --- a/cdn/src/routes/attachments.ts +++ b/cdn/src/routes/attachments.ts @@ -11,7 +11,7 @@ const router = Router(); router.post("/:channel_id", multer.single("file"), async (req: Request, res: Response) => { if (req.headers.signature !== Config.get().security.requestSignature) throw new HTTPError("Invalid request signature"); - if (!req.file) throw new HTTPError("Invalid request signature"); + if (!req.file) throw new HTTPError("file missing"); const { buffer, mimetype, size, originalname, fieldname } = req.file; const { channel_id } = req.params;