Skip to content

Commit 108a3df

Browse files
committed
fix: abort when partHandler.reportProgress throws an error
1 parent 93f0cad commit 108a3df

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/multipart/main.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,8 @@ export class Multipart {
209209
try {
210210
await partHandler.reportProgress(line, lineLength)
211211
} catch (err) {
212-
this.#ctx.logger.fatal(
213-
'Unhandled multipart stream error. Make sure to handle "error" events for all manually processed streams'
214-
)
212+
part.emit('error', error)
213+
this.abort(error)
215214
}
216215
})
217216

0 commit comments

Comments
 (0)