MCPcopy Create free account
hub / github.com/vercel/vercel / normalizeConfigError

Function normalizeConfigError

packages/cli-config/src/cli-config.ts:32–44  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

30export const defaultAuthConfig: AuthConfig = getDefaultAuthConfig();
31
32function normalizeConfigError(error: unknown): never {
33 if (error instanceof z.ZodError) {
34 const credStorageIssue = error.issues.find(
35 issue => issue.path[0] === 'credStorage'
36 );
37
38 if (credStorageIssue) {
39 throw new Error(credStorageIssue.message);
40 }
41 }
42
43 throw error;
44}
45
46export function parseGlobalConfig(value: unknown): GlobalConfig {
47 try {

Callers 2

parseGlobalConfigFunction · 0.85
readGlobalConfigFileFunction · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected