(e: unknown)
| 184 | * ELOOP — too many symlink levels (circular symlinks) |
| 185 | */ |
| 186 | export function isFsInaccessible(e: unknown): e is NodeJS.ErrnoException { |
| 187 | const code = getErrnoCode(e) |
| 188 | return ( |
| 189 | code === 'ENOENT' || |
| 190 | code === 'EACCES' || |
| 191 | code === 'EPERM' || |
| 192 | code === 'ENOTDIR' || |
| 193 | code === 'ELOOP' |
| 194 | ) |
| 195 | } |
| 196 | |
| 197 | export type AxiosErrorKind = |
| 198 | | 'auth' // 401/403 — caller typically sets skipRetry |
no test coverage detected