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

Function handleResolveError

packages/cli/src/commands/auth/status.ts:130–139  ·  view source on GitHub ↗
(err: unknown, asJson: boolean)

Source from the content-addressed store, hash-verified

128
129// fallow-ignore-next-line complexity
130function handleResolveError(err: unknown, asJson: boolean): never {
131 if (!isAuthError(err)) throw err;
132 if (asJson) {
133 console.log(JSON.stringify({ configured: false, error: err.message, hint: err.hint ?? null }));
134 } else {
135 console.error(c.error(err.message));
136 if (err.hint) console.error(c.dim(err.hint));
137 }
138 process.exit(1);
139}
140
141async function verify(credential: ResolvedCredential): Promise<VerifiedStatus> {
142 const client = new AuthClient({

Callers 1

runFunction · 0.85

Calls 2

isAuthErrorFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected