This reverts commit f3d364122d. Landed in master instead.
f3d364122d
@ -1027,8 +1027,7 @@ WriteStream.prototype.flush = function() {
WriteStream.prototype.write = function(data) {
if (!this.writable) {
this.emit("error", new Error('stream not writable'));
return false;
throw new Error('stream not writable');
}
this.drainable = true;
@ -99,8 +99,7 @@ WriteStream.prototype.isTTY = true;
WriteStream.prototype.write = function(data, encoding) {
if (Buffer.isBuffer(data)) {