MCPcopy Index your code
hub / github.com/github/copilot-sdk / toSessionFsError

Function toSessionFsError

nodejs/src/sessionFsProvider.ts:231–235  ·  view source on GitHub ↗
(err: unknown)

Source from the content-addressed store, hash-verified

229}
230
231function toSessionFsError(err: unknown): SessionFsError {
232 const e = err as NodeJS.ErrnoException;
233 const code = e.code === "ENOENT" ? "ENOENT" : "UNKNOWN";
234 return { code, message: e.message ?? String(err) };
235}

Callers 1

createSessionFsAdapterFunction · 0.85

Calls 1

StringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…