aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-05-19 20:28:17 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-05-19 20:28:17 +0200
commit6e56eb63ac759f8deb3449116f952838313ad1a7 (patch)
treea53dcb81386f50a941594bf0235c909beb78a4b9 /server/controllers/api
parent13c14a902816f6e8d663ccb6af0d82662ed85ed1 (diff)
downloadPeerTube-6e56eb63ac759f8deb3449116f952838313ad1a7.tar.gz
PeerTube-6e56eb63ac759f8deb3449116f952838313ad1a7.tar.zst
PeerTube-6e56eb63ac759f8deb3449116f952838313ad1a7.zip
Return with callback with an error
Diffstat (limited to 'server/controllers/api')
-rw-r--r--server/controllers/api/v1/pods.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/v1/pods.js b/server/controllers/api/v1/pods.js
index e216714d6..ecaeba666 100644
--- a/server/controllers/api/v1/pods.js
+++ b/server/controllers/api/v1/pods.js
@@ -117,7 +117,7 @@ function removePods (req, res, next) {
117 videos.removeRemoteVideos(videosList, function (err) { 117 videos.removeRemoteVideos(videosList, function (err) {
118 if (err) { 118 if (err) {
119 logger.error('Cannot remove remote videos.', { error: err }) 119 logger.error('Cannot remove remote videos.', { error: err })
120 callback(err) 120 return callback(err)
121 } 121 }
122 122
123 return callback(null) 123 return callback(null)