Files
openclaw/src/hooks/gmail-watcher-errors.ts
2026-06-04 20:08:40 -04:00

8 lines
317 B
TypeScript

// Gmail watcher error helpers classify watcher startup and runtime failures.
const ADDRESS_IN_USE_RE = /address already in use|EADDRINUSE/i;
/** Detect watcher startup failures caused by an occupied bind port. */
export function isAddressInUseError(line: string): boolean {
return ADDRESS_IN_USE_RE.test(line);
}