MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / emitFailureReport

Function emitFailureReport

packages/cli/src/commands/validate.ts:376–384  ·  view source on GitHub ↗
(message: string, asJson: boolean)

Source from the content-addressed store, hash-verified

374}
375
376function emitFailureReport(message: string, asJson: boolean): void {
377 if (asJson) {
378 console.log(
379 JSON.stringify(withMeta({ ok: false, error: message, errors: [], warnings: [] }), null, 2),
380 );
381 return;
382 }
383 console.error(`${c.error("✗")} ${message}`);
384}
385
386export default defineCommand({
387 meta: {

Callers 1

runFunction · 0.85

Calls 2

withMetaFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected