Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Commit

Permalink
refactor: Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
fb55 committed Jan 7, 2022
1 parent 06311ed commit 68cf1f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/parse5-parser-stream/test/utils/parse-chunked.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function parseChunked(

for (let i = 0; i < chunks.length - 1; i++) {
if (typeof chunks[i] !== 'string') {
throw new TypeError('Expected string');
throw new TypeError('Expected chunk to be a string');
}
parserStream.write(chunks[i]);
}
Expand Down

0 comments on commit 68cf1f2

Please sign in to comment.