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

Function printSelectionFailure

packages/cli/src/commands/preview.ts:302–309  ·  view source on GitHub ↗
(code: string, message: string, json: boolean)

Source from the content-addressed store, hash-verified

300}
301
302function printSelectionFailure(code: string, message: string, json: boolean): void {
303 if (json) {
304 console.log(JSON.stringify({ ok: false, error: { code, message } }, null, 2));
305 } else {
306 clack.log.error(message);
307 }
308 process.exitCode = 1;
309}
310
311function previewServerPayload(server: {
312 port: number;

Callers 2

printCurrentSelectionFunction · 0.85
printCurrentContextFunction · 0.85

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected