We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5c7e40 commit 36028caCopy full SHA for 36028ca
lib/tty.js
@@ -63,7 +63,11 @@ inherits(ReadStream, net.Socket);
63
64
ReadStream.prototype.setRawMode = function(flag) {
65
flag = !!flag;
66
- this._handle.setRawMode(flag);
+ const err = this._handle.setRawMode(flag);
67
+ if (err) {
68
+ this.emit('error', errors.errnoException(err, 'setRawMode'));
69
+ return;
70
+ }
71
this.isRaw = flag;
72
};
73
0 commit comments