Download src/hooks/gmail-watcher-errors.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 317 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/hooks/gmail-watcher-errors.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/hooks/gmail-watcher-errors.ts
-
curl -L -o gmail-watcher-errors.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/hooks/gmail-watcher-errors.ts
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); | |
| } | |