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 }; }