Browse Source

add error status to query-stream

v4
Mathias Buus 6 years ago
parent
commit
b68e47883a
  1. 2
      lib/query-stream.js

2
lib/query-stream.js

@ -27,6 +27,7 @@ class QueryStream extends Readable {
this.destroyed = false
this.inflight = 0
this.responses = 0
this.errors = 0
this.updates = 0
this.table = opts.table || new QueryTable(node.id, target)
@ -64,6 +65,7 @@ class QueryStream extends Readable {
}
if (err) {
this.errors++
this.emit('warning', err)
this._readMaybe()
return

Loading…
Cancel
Save