🌳
pt0/serverF/childProcF/rethrowEnoentWithHintAI.mts
3export const rethrowEnoentWithHint = (ee: unknown, cmdA: string[]): never => {
4 const err = ee as {code?: string}
5 const enoentHint = `${cmdA[0]} not found on PATH; if corepack/pnpm, run: npm i -g corepack (node >=25 no longer bundles corepack)`
6 throwIf(() => err.code === 'ENOENT', {cmdA, enoentHint})
7 throw ee
8}