Process does not terminate and the stream error handler is called
Steps To Reproduce
Run the following script. It will change the tmp folder permission, so that an error is triggered. It can happen in other circumstances too (of of disk space, etc.)
In certain cases this results in a lingering rejected promise handleContentP within lib/content/write.js
In the example, such case is when the readable stream has not ended.
Is there an existing issue for this?
Current Behavior
Process terminates with error:
Expected Behavior
Process does not terminate and the stream error handler is called
Steps To Reproduce
Run the following script. It will change the
tmp
folder permission, so that an error is triggered. It can happen in other circumstances too (of of disk space, etc.) In certain cases this results in a lingering rejected promisehandleContentP
withinlib/content/write.js
In the example, such case is when the readable stream has not ended.Environment