From 5fbd08be3749e08662b39b3ff74bbd5b458063ef Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 20 Jan 2020 13:59:56 +0100 Subject: Fix typo in error log --- server/middlewares/validators/videos/video-comments.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/middlewares/validators/videos') diff --git a/server/middlewares/validators/videos/video-comments.ts b/server/middlewares/validators/videos/video-comments.ts index eb07d9430..77c5f940d 100644 --- a/server/middlewares/validators/videos/video-comments.ts +++ b/server/middlewares/validators/videos/video-comments.ts @@ -134,7 +134,7 @@ async function doesVideoCommentThreadExist (idArg: number | string, video: MVide if (videoComment.videoId !== video.id) { res.status(400) - .json({ error: 'Video comment is associated to this video.' }) + .json({ error: 'Video comment is not associated to this video.' }) .end() return false @@ -166,7 +166,7 @@ async function doesVideoCommentExist (idArg: number | string, video: MVideoId, r if (videoComment.videoId !== video.id) { res.status(400) - .json({ error: 'Video comment is associated to this video.' }) + .json({ error: 'Video comment is not associated to this video.' }) .end() return false -- cgit v1.2.3