diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-01-04 22:23:07 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-01-04 22:23:07 +0100 |
commit | bdfbd4f162d66c3a6bd7c312a99e0b692e830792 (patch) | |
tree | 30b857f73fe62771a94320e3e78030a1345dc3a8 /server/models/request.js | |
parent | b981a525c37d226b3fa59287a6ce338f54583d0c (diff) | |
download | PeerTube-bdfbd4f162d66c3a6bd7c312a99e0b692e830792.tar.gz PeerTube-bdfbd4f162d66c3a6bd7c312a99e0b692e830792.tar.zst PeerTube-bdfbd4f162d66c3a6bd7c312a99e0b692e830792.zip |
Server: use crypto instead of ursa for pod signature
Diffstat (limited to 'server/models/request.js')
-rw-r--r-- | server/models/request.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/request.js b/server/models/request.js index e18f8fe3d..bae227c05 100644 --- a/server/models/request.js +++ b/server/models/request.js | |||
@@ -122,7 +122,7 @@ function makeRequest (toPod, requestEndpoint, requestsToMake, callback) { | |||
122 | 'Error sending secure request to %s pod.', | 122 | 'Error sending secure request to %s pod.', |
123 | toPod.host, | 123 | toPod.host, |
124 | { | 124 | { |
125 | error: err || new Error('Status code not 20x : ' + res.statusCode) | 125 | error: err ? err.message : 'Status code not 20x : ' + res.statusCode |
126 | } | 126 | } |
127 | ) | 127 | ) |
128 | 128 | ||