aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/videos.js
diff options
context:
space:
mode:
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 }