Skip to content

Commit

Permalink
print error
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzhenn committed Jul 17, 2020
1 parent b3dab26 commit 23ad315
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ function parseStream() {
try {
nodes = parser(data)
} catch (error) {
if (typeof console) {
console.log(error)
}
next(error)
return;
return
}
for (var i = 0; i < nodes.length; i++) {
this.push(nodes[i])
Expand Down

0 comments on commit 23ad315

Please sign in to comment.