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

Function castToError

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

Source from the content-addressed store, hash-verified

70066 if (typeof n2 !== "number" || !Number.isInteger(n2)) {
70067 throw new AnthropicError(`${name} must be an integer`);
70068 }
70069 if (n2 < 0) {
70070 throw new AnthropicError(`${name} must be a positive integer`);
70071 }
70072 return n2;
70073};
70074var castToError = (err) => {
70075 if (err instanceof Error)

Callers 2

generateMethod · 0.85
makeRequestMethod · 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…