Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfisch0920 <fisch0920@gmail.com>2014-05-12 12:38:44 +0400
committerfisch0920 <fisch0920@gmail.com>2014-05-12 12:38:44 +0400
commit7830df188978c7c6f364c2ebfa4ecae0fa65ff54 (patch)
tree0882980bfa589586e55857d97fa07dbccb9666ba /index.js
parent776f49e302a307377c86c73d3800aaa600cb5eda (diff)
fix for invalid torrents passed via commandline
Diffstat (limited to 'index.js')
-rw-r--r--index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.js b/index.js
index 318a76d..4a2ac45 100644
--- a/index.js
+++ b/index.js
@@ -60,8 +60,8 @@ WebTorrent.prototype.add = function (torrentId, cb) {
// assume it's a filesystem path
fs.readFile(torrentId, function (err, torrent) {
if (err) {
- return cb(new Error('Cannot add torrent. Require one of: magnet uri, ' +
- 'info hash, torrent file, http url, or filesystem path'))
+ return cb(new Error('Cannot add torrent "' + torrentId + '". Torrent id must be one of: magnet uri, ' +
+ 'info hash, torrent file, http url, or filesystem path.'))
}
onTorrentId(torrent)
})