]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix typo in error log
authorChocobozzz <me@florianbigard.com>
Mon, 20 Jan 2020 12:59:56 +0000 (13:59 +0100)
committerChocobozzz <me@florianbigard.com>
Mon, 20 Jan 2020 14:41:57 +0000 (15:41 +0100)
server/middlewares/validators/videos/video-comments.ts

index eb07d94309e352164aa68d64e045f49a284f9955..77c5f940df4d3fa41f341c4e6e74b0e85a140e44 100644 (file)
@@ -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