Skip to content

Commit d5e1fa2

Browse files
committed
Fix incorrect index in error message
1 parent 08ceb13 commit d5e1fa2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ const handleChunk255 = (bytes, index, bytesLength) => {
172172
throw new DecompressError(
173173
createMessage(
174174
`The \`bytes\` argument is malformed because it has ${bytesLength} elements.`,
175-
`It wants to read from index ${bytesCountIndex} to ${verbatimEnd}.`
175+
`It wants to read from index ${verbatimStart} to ${verbatimEnd}.`
176176
)
177177
)
178178
}

0 commit comments

Comments
 (0)