aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-10-01 10:10:49 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-10-01 10:10:49 +0200
commit7c34bc6491d3f8b991acebf788e8cb19dd6018fc (patch)
treeae570dc4820f37ed2225945c576926a8a9fd32c0 /server
parent19a08a34986c8c242ac3032eb49131938cfe7252 (diff)
downloadPeerTube-7c34bc6491d3f8b991acebf788e8cb19dd6018fc.tar.gz
PeerTube-7c34bc6491d3f8b991acebf788e8cb19dd6018fc.tar.zst
PeerTube-7c34bc6491d3f8b991acebf788e8cb19dd6018fc.zip
Server: fix error log when a friend request fails
Diffstat (limited to 'server')
-rw-r--r--server/models/request.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/models/request.js b/server/models/request.js
index b36b4f613..73b17dc8c 100644
--- a/server/models/request.js
+++ b/server/models/request.js
@@ -100,8 +100,7 @@ function makeRequest (toPod, requestsToMake, callback) {
100 'Error sending secure request to %s pod.', 100 'Error sending secure request to %s pod.',
101 toPod.url, 101 toPod.url,
102 { 102 {
103 error: err || new Error('Status code not 20x'), 103 error: err || new Error('Status code not 20x : ' + res.statusCode)
104 statusCode: res.statusCode
105 } 104 }
106 ) 105 )
107 106