@ -101,7 +101,7 @@ WriteStream.prototype._refreshSize = function() {
var oldRows = this.rows;
var winSize = this._handle.getWindowSize();
if (!winSize) {
throw errnoException(errno, 'getWindowSize');
this.emit('error', errnoException(errno, 'getWindowSize'));
}
var newCols = winSize[0];
var newRows = winSize[1];