diff options
author | xnacly <matteogropp@protonmail.com> | 2021-08-18 16:53:35 +0200 |
---|---|---|
committer | xnacly <matteogropp@protonmail.com> | 2021-08-18 16:53:35 +0200 |
commit | d2840cb553d3d0be625f3abb4748c1c8c105bbeb (patch) | |
tree | 18ce9db0a65083e95e4c0c51315f8b2d00760b91 /cdn | |
parent | added a common error to CONTRIBUTE.md (diff) | |
download | server-d2840cb553d3d0be625f3abb4748c1c8c105bbeb.tar.xz |
fixed wrong wording in HTTPError
Diffstat (limited to 'cdn')
-rw-r--r-- | cdn/src/routes/attachments.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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; |