MCPcopy
hub / github.com/colbymchenry/codegraph / fail

Function fail

scripts/add-lang/check-grammar.mjs:23–23  ·  view source on GitHub ↗
(code, msg)

Source from the content-addressed store, hash-verified

21
22const require = createRequire(import.meta.url);
23const fail = (code, msg) => { console.error(`[check-grammar] ${msg}`); process.exit(code); };
24
25const [token, sample, iterArg] = process.argv.slice(2);
26if (!token || !sample) fail(2, 'usage: check-grammar.mjs <lang|wasm-path> <valid-sample> [iterations]');

Callers 2

check-grammar.mjsFile · 0.70
resolveWasmFunction · 0.70

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected