Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Return after emitting error in tty.js
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed May 1, 2012
1 parent b894521 commit fb400b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/tty.js
Expand Up @@ -102,6 +102,7 @@ WriteStream.prototype._refreshSize = function() {
var winSize = this._handle.getWindowSize();
if (!winSize) {
this.emit('error', errnoException(errno, 'getWindowSize'));
return;
}
var newCols = winSize[0];
var newRows = winSize[1];
Expand Down

0 comments on commit fb400b4

Please sign in to comment.