From 10db166bbe510af27cb20cc0f028537af0df9c41 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 19 Oct 2017 10:22:07 +0200 Subject: Upgrade client dependencies and fix error logs --- server/middlewares/validators/videos.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/middlewares/validators/videos.ts') diff --git a/server/middlewares/validators/videos.ts b/server/middlewares/validators/videos.ts index f63348e66..3f881e1b5 100644 --- a/server/middlewares/validators/videos.ts +++ b/server/middlewares/validators/videos.ts @@ -24,8 +24,8 @@ import { const videosAddValidator = [ body('videofile').custom((value, { req }) => isVideoFile(req.files)).withMessage( - 'This file is not supported. Are you sure it is of the following type : ' - + CONSTRAINTS_FIELDS.VIDEOS.EXTNAME + 'This file is not supported. Please, make sure it is of the following type : ' + + CONSTRAINTS_FIELDS.VIDEOS.EXTNAME.join(', ') ), body('name').custom(isVideoNameValid).withMessage('Should have a valid name'), body('category').custom(isVideoCategoryValid).withMessage('Should have a valid category'), -- cgit v1.2.3