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

Function makeError

nodejs/test/session_fs_adapter.test.ts:186–192  ·  view source on GitHub ↗
(message: string, code?: string)

Source from the content-addressed store, hash-verified

184
185 it("converts provider exceptions to rpc errors", async () => {
186 function makeError(message: string, code?: string): Error {
187 const err = new Error(message) as Error & { code?: string };
188 if (code) {
189 err.code = code;
190 }
191 return err;
192 }
193
194 function makeThrowingProvider(error: Error): SessionFsProvider {
195 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…