mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
tty: emit "error" instead of throwing when getWindowSize() fails
This commit is contained in:
parent
6cacb9a21e
commit
f4403f90f8
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user