Function
errorFor
(
kind: 'create-failed' | 'timeout',
info: { lockPath: string; cause?: unknown }
)
Source from the content-addressed store, hash-verified
| 22 | }); |
| 23 | |
| 24 | function errorFor( |
| 25 | kind: 'create-failed' | 'timeout', |
| 26 | info: { lockPath: string; cause?: unknown } |
| 27 | ): Error { |
| 28 | return new Error(`${kind}:${info.lockPath}`); |
| 29 | } |
| 30 | |
| 31 | // posix-only: these induce a lock-create failure via chmod(0o555), which |
| 32 | // win32 ignores for directories, so the lock would succeed instead of |
Tested by
no test coverage detected