aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/videos.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-02-05 19:02:05 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-02-05 19:02:05 +0100
commit8425cb894d4867d26fd5f7fae7862b0669f3c717 (patch)
tree5e2f00a8219e198f2dd074ca13f3ae681174228f /lib/videos.js
parentdac0a5319ab1c52a0958647b1593f85339b77e29 (diff)
downloadPeerTube-8425cb894d4867d26fd5f7fae7862b0669f3c717.tar.gz
PeerTube-8425cb894d4867d26fd5f7fae7862b0669f3c717.tar.zst
PeerTube-8425cb894d4867d26fd5f7fae7862b0669f3c717.zip
Error handling mini refractoring
Diffstat (limited to 'lib/videos.js')
-rw-r--r--lib/videos.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/videos.js b/lib/videos.js
index 5d23070a7..0da7715c4 100644
--- a/lib/videos.js
+++ b/lib/videos.js
@@ -28,14 +28,14 @@
28 function seedAllExisting (callback) { 28 function seedAllExisting (callback) {
29 Videos.listOwned(function (err, videos_list) { 29 Videos.listOwned(function (err, videos_list) {
30 if (err) { 30 if (err) {
31 logger.error('Cannot get list of the videos to seed.', { error: err }) 31 logger.error('Cannot get list of the videos to seed.')
32 return callback(err) 32 return callback(err)
33 } 33 }
34 34
35 async.each(videos_list, function (video, each_callback) { 35 async.each(videos_list, function (video, each_callback) {
36 seed(uploadDir + video.namePath, function (err) { 36 seed(uploadDir + video.namePath, function (err) {
37 if (err) { 37 if (err) {
38 logger.error('Cannot seed this video.', { error: err }) 38 logger.error('Cannot seed this video.')
39 return callback(err) 39 return callback(err)
40 } 40 }
41 41