Skip to content

Commit 23ad315

Browse files
committed
print error
1 parent b3dab26 commit 23ad315

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

stream.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ function parseStream() {
1717
try {
1818
nodes = parser(data)
1919
} catch (error) {
20+
if (typeof console) {
21+
console.log(error)
22+
}
2023
next(error)
21-
return;
24+
return
2225
}
2326
for (var i = 0; i < nodes.length; i++) {
2427
this.push(nodes[i])

0 commit comments

Comments
 (0)