MCPcopy
hub / github.com/di-sukharev/opencommit / castToError2

Function castToError2

out/cli.cjs:81067–81071  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

81065 if (typeof n2 !== "number" || !Number.isInteger(n2)) {
81066 throw new OpenAIError(`${name} must be an integer`);
81067 }
81068 if (n2 < 0) {
81069 throw new OpenAIError(`${name} must be a positive integer`);
81070 }
81071 return n2;
81072};
81073var castToError2 = (err) => {
81074 if (err instanceof Error)

Callers 2

makeRequestMethod · 0.85
generateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…