This commit is contained in:
meganrogge
2021-06-22 09:54:00 -07:00
parent 5716b11561
commit 7c78ef3e80
@@ -1231,6 +1231,9 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
exitCodeMessage = nls.localize('terminated.exitCodeOnly', "The terminal process terminated with exit code: {0}.", this._exitCode);
break;
case 'object':
if (exitCodeOrError.message.toString().includes('Could not find pty with id')) {
break;
}
this._exitCode = exitCodeOrError.code;
exitCodeMessage = nls.localize('launchFailed.errorMessage', "The terminal process failed to launch: {0}.", exitCodeOrError.message);
break;