Skip to content

Commit

Permalink
fix: improve error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
kalinkrustev authored Nov 23, 2023
1 parent 2e1383d commit 632e6bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/content/write.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class CacacheWriteStream extends Flush {
this.cache,
this.opts
)
this.handleContentP.catch(error => this.destroy(error))
this.handleContentP.catch(error => this.emit('error', error))
}
return this.inputStream.write(chunk, encoding, cb)
}
Expand Down

0 comments on commit 632e6bc

Please sign in to comment.