豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 6629d7d

Browse files
committed
Improve error message
1 parent 9c3bf4f commit 6629d7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StringWriter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class StringWriter extends Writable {
1616
return
1717
}
1818
if (this.byteLength + chunk.byteLength > this.maxByteLength) {
19-
callback(new Error(`StringWriter: Out of bounds. (maxByteLength=${this.maxByteLength})`))
19+
callback(new Error(`StringWriter: Maximum bytes exceeded, maxByteLength=${this.maxByteLength}.`))
2020
return
2121
}
2222
this.byteLength += chunk.byteLength

0 commit comments

Comments
 (0)