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

Function fromStoreError

src/core/root-selection.ts:93–102  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

91}
92
93function fromStoreError(error: unknown): never {
94 if (error instanceof StoreError) {
95 throw new RootSelectionError(error.message, error.diagnostic.code, {
96 ...(error.diagnostic.target ? { target: error.diagnostic.target } : {}),
97 ...(error.diagnostic.fix ? { fix: error.diagnostic.fix } : {}),
98 });
99 }
100
101 throw error;
102}
103
104function doctorFix(id: string): string {
105 return `Run openspec store doctor ${id} to inspect it.`;

Callers 2

resolveStoreRootFunction · 0.85
resolveOpenSpecRootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected