We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb36fa0 commit ede4c32Copy full SHA for ede4c32
1 file changed
src/interceptors/fresh-terminal.ts
@@ -116,8 +116,14 @@ export class TerminalInterceptor implements Interceptor {
116
117
terminals[proxyPort] = (terminals[proxyPort] || []).concat(childProc);
118
119
- childProc.once('exit', () => {
+
120
+ const onTerminalClosed = () => {
121
terminals[proxyPort] = _.reject(terminals[proxyPort], childProc);
122
+ };
123
+ childProc.once('exit', onTerminalClosed);
124
+ childProc.once('error', (e) => {
125
+ reportError(e);
126
+ onTerminalClosed();
127
});
128
}
129
0 commit comments