in src/widgets/dialogs/PodsTerminal/index.tsx [242:261]
function shellConnectFailed(xtermc: XTerminalConnected) {
const xterm = xtermc.xterm;
const command = getCurrentShellCommand();
if (isLastShell()) {
if (xtermc.connected) {
xterm.write(t('Failed to run "{{command}}"…', { command }) + '\r\n');
} else {
xterm.clear();
xterm.write(t('Failed to connect…') + '\r\n');
}
xterm.write('\r\n' + t('Press the enter key to reconnect.') + '\r\n');
if (xtermRef.current) {
xtermRef.current.reconnectOnEnter = true;
}
} else {
xterm.write(t('Failed to run "{{ command }}"', { command }) + '\r\n');
tryNextShell();
}
}