Skip to content

Commit 674fa92

Browse files
Potential fix for pull request finding 'Unhandled error in stream pipeline'
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent 8f4cf9f commit 674fa92

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

script/histogram_storage_sync.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ async function uploadToBigQuery(rows) {
110110
reject(error)
111111
})
112112

113+
dataStream.on('error', (error) => {
114+
console.error('Source stream error during upload:', error.message)
115+
reject(error)
116+
})
117+
113118
dataStream.pipe(writeStream)
114119
})
115120
}

0 commit comments

Comments
 (0)