mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
tty: emit "error" instead of throwing when getWindowSize() fails
This commit is contained in:
1 parent
6cacb9a21e
commit
f4403f90f8
1 file changed
+1
-1
+1
-1
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user