diff options
author | fisch0920 <fisch0920@gmail.com> | 2014-05-12 12:38:44 +0400 |
---|---|---|
committer | fisch0920 <fisch0920@gmail.com> | 2014-05-12 12:38:44 +0400 |
commit | 7830df188978c7c6f364c2ebfa4ecae0fa65ff54 (patch) | |
tree | 0882980bfa589586e55857d97fa07dbccb9666ba /index.js | |
parent | 776f49e302a307377c86c73d3800aaa600cb5eda (diff) |
fix for invalid torrents passed via commandline
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) }) |