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

Commit 069852f

Browse files
committed
refactor: Improve error message
1 parent 35007d5 commit 069852f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/parse5-parser-stream/test/utils/parse-chunked.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function parseChunked(
1717

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

0 commit comments

Comments
 (0)