diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-02-05 19:02:05 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-02-05 19:02:05 +0100 |
commit | 8425cb894d4867d26fd5f7fae7862b0669f3c717 (patch) | |
tree | 5e2f00a8219e198f2dd074ca13f3ae681174228f /lib/webtorrent.js | |
parent | dac0a5319ab1c52a0958647b1593f85339b77e29 (diff) | |
download | PeerTube-8425cb894d4867d26fd5f7fae7862b0669f3c717.tar.gz PeerTube-8425cb894d4867d26fd5f7fae7862b0669f3c717.tar.zst PeerTube-8425cb894d4867d26fd5f7fae7862b0669f3c717.zip |
Error handling mini refractoring
Diffstat (limited to 'lib/webtorrent.js')
-rw-r--r-- | lib/webtorrent.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/webtorrent.js b/lib/webtorrent.js index d1ca3c9f2..d0db6e066 100644 --- a/lib/webtorrent.js +++ b/lib/webtorrent.js | |||
@@ -62,7 +62,7 @@ | |||
62 | try { | 62 | try { |
63 | wt.remove(magnetUri, callback) | 63 | wt.remove(magnetUri, callback) |
64 | } catch (err) { | 64 | } catch (err) { |
65 | console.log('Cannot remove the torrent from WebTorrent') | 65 | console.log('Cannot remove the torrent from WebTorrent.') |
66 | return callback(null) | 66 | return callback(null) |
67 | } | 67 | } |
68 | 68 | ||