openclaw / src /hooks /gmail-watcher-errors.ts
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
d197cf3 verified
Raw
History Blame Contribute Delete
317 Bytes
// 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);
}