Skip to content

Commit

Permalink
fix(export): remove promise rejection handling since we are handling …
Browse files Browse the repository at this point in the history
…it in pipeline
  • Loading branch information
j33ty committed May 8, 2024
1 parent 1ba1a36 commit 9b49a32
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/export.js
Expand Up @@ -126,21 +126,14 @@ async function exportDataset(opts) {
miss.through(reportDocumentCount),
)

jsonStream.on('end', () => {
debug('Export stream completed')
})

jsonStream.on('error', (streamErr) => {
debug('Export stream error: ', streamErr)
reject(streamErr)
})

miss.finished(jsonStream, async (err) => {
if (err) {
debug('Export stream error: ', err)
reject(err)
return
}

debug('Export stream completed')
onProgress({
step: 'Exporting documents...',
current: documentCount,
Expand Down

0 comments on commit 9b49a32

Please sign in to comment.