MCPcopy
hub / github.com/Fission-AI/OpenSpec / errorFor

Function errorFor

test/core/file-state.test.ts:24–29  ·  view source on GitHub ↗
(
    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

Callers 1

acquireFileLockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected