Browse Source

Fix typo in error log

Chocobozzz 4 years ago
parent
commit
5fbd08be37
1 changed files with 2 additions and 2 deletions
  1. 2 2
      server/middlewares/validators/videos/video-comments.ts

+ 2 - 2
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