in src/widgets/dialogs/PodsTerminal/index.tsx [388:405]
function isShellNotFoundError(channel: number, text: string): boolean {
// Linux container Error
if (channel === 3) {
try {
const error = JSON.parse(text);
if (error.code === 500 && error.status === 'Failure' && error.reason === 'InternalError') {
return true;
}
} catch {}
}
// Windows container Error
if (channel === 1) {
if (text.includes('The system cannot find the file specified')) {
return true;
}
}
return false;
}