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:
-rw-r--r--lib/torrent.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/torrent.js b/lib/torrent.js
index 7acad70..d484198 100644
--- a/lib/torrent.js
+++ b/lib/torrent.js
@@ -837,7 +837,7 @@ class Torrent extends EventEmitter {
if (this.destroyed) throw new Error('torrent is destroyed')
if (start < 0 || end < start || this.pieces.length <= end) {
- throw new Error('invalid selection ', start, ':', end)
+ throw new Error(`invalid selection ${start} : ${end}`)
}
priority = Number(priority) || 0