UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

9 lines (8 loc) • 384 B
//#region src/infra/fs-watch-errors.ts function getFileWatchCapacityCode(error) { if (typeof error !== "object" || error === null || !("syscall" in error) || error.syscall !== "watch" || !("code" in error)) return; const code = error.code; return code === "EMFILE" || code === "ENFILE" || code === "ENOSPC" ? code : void 0; } //#endregion export { getFileWatchCapacityCode as t };