Skip to content

Commit 88ba4a6

Browse files
committed
print error
1 parent b3dab26 commit 88ba4a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stream.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ function parseStream() {
1717
try {
1818
nodes = parser(data)
1919
} catch (error) {
20+
if (typeof console) {
21+
console.log(error)
22+
}
2023
next(error)
2124
return;
2225
}

0 commit comments

Comments
 (0)