summary refs log tree commit diff
path: root/cdn
diff options
context:
space:
mode:
authorxnacly <matteogropp@protonmail.com>2021-08-18 16:53:35 +0200
committerxnacly <matteogropp@protonmail.com>2021-08-18 16:53:35 +0200
commitc68488d33d0b783991afac15a65816a1c6a0bfdf (patch)
treed8c4e2e9f6b8d722c2c6803e45c987575bd566e4 /cdn
parentadded a common error to CONTRIBUTE.md (diff)
downloadserver-c68488d33d0b783991afac15a65816a1c6a0bfdf.tar.xz
fixed wrong wording in HTTPError
Diffstat (limited to 'cdn')
-rw-r--r--cdn/src/routes/attachments.ts2
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;