mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-23 09:48:14 +00:00
8 lines
317 B
TypeScript
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);
|
|
}
|