MCPcopy
hub / github.com/cobusgreyling/loop-engineering / fail

Function fail

scripts/validate-registry.mjs:22–25  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

20const VALID_COST = new Set(['low', 'medium', 'high', 'very-high']);
21
22function fail(msg) {
23 console.error(`ERROR: ${msg}`);
24 process.exit(1);
25}
26
27function validatePattern(p, index) {
28 const prefix = `patterns[${index}]`;

Callers 2

validatePatternFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected