Skip to content

Commit

Permalink
chore: enhance pipe rejection hook
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Sep 17, 2024
1 parent 13f34df commit 301bb30
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,11 +478,7 @@ export class ProcessPromise extends Promise<ProcessOutput> {
}
this._piped = true
if (dest instanceof ProcessPromise) {
const _reject = this._reject
this._reject = function (v) {
_reject(v)
dest._reject(v)
}
this.catch(dest._reject)
dest.stdio('pipe')
dest._prerun = this.run.bind(this)
dest._postrun = () => {
Expand Down

0 comments on commit 301bb30

Please sign in to comment.