mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 12:22:14 +03:00
Node.js v24 added strict type checking to process.exit() and throws TypeError [ERR_INVALID_ARG_TYPE] when given a non-number. The spawn 'error' event passes err.code (e.g. 'ENOENT') — a string, not a number — via `err.code ?? -1` (nullish coalescing doesn't help since 'ENOENT' is not null/undefined). handleExit() now normalises the code to a number at the top; the 'error' callback passes -1 unconditionally.