From 747c6a4c15bec5844c0b0ff857d413cf08708400 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Sun, 8 Jul 2018 21:47:12 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Improve=20error=20message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/reader/bencodeParser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssn/reader/bencodeParser.ts b/src/ssn/reader/bencodeParser.ts index 3747d68..1876225 100644 --- a/src/ssn/reader/bencodeParser.ts +++ b/src/ssn/reader/bencodeParser.ts @@ -73,7 +73,7 @@ function bpParse(dv: DataView, posIn: number = 0): { obj: any, pos: number } { break; } default: - throw new Error('Unexpected leading char during bencode parsing.'); + throw new Error(`Unexpected leading char during bencode parsing at position ${pos}.`); } return { obj, pos }; }