aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/videos.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2015-10-30 18:34:37 +0100
committerChocobozzz <florian.bigard@gmail.com>2015-10-30 18:34:37 +0100
commit77c2df95857b9fbc0a5935c51ffef073ffc277b7 (patch)
treeb18cc8e1cb2c39915d6b4335f3d2b406d7b72892 /src/videos.js
parente63dc45fa368de478ba3b37eabbfb1c233988348 (diff)
downloadPeerTube-77c2df95857b9fbc0a5935c51ffef073ffc277b7.tar.gz
PeerTube-77c2df95857b9fbc0a5935c51ffef073ffc277b7.tar.zst
PeerTube-77c2df95857b9fbc0a5935c51ffef073ffc277b7.zip
Fix tests
Diffstat (limited to 'src/videos.js')
-rw-r--r--src/videos.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/videos.js b/src/videos.js
index 605ce098f..48ec19d4d 100644
--- a/src/videos.js
+++ b/src/videos.js
@@ -103,6 +103,7 @@
103 103
104 VideosDB.findById(id, function (err, video) { 104 VideosDB.findById(id, function (err, video) {
105 if (err || !video) { 105 if (err || !video) {
106 if (!err) err = new Error('Cannot find this video.')
106 logger.error('Cannot find this video.', { error: err }) 107 logger.error('Cannot find this video.', { error: err })
107 return callback(err) 108 return callback(err)
108 } 109 }