MCPcopy Index your code
hub / github.com/deepnote/deepnote / formatFirstIssue

Function formatFirstIssue

packages/mcp/src/tools/conversion.ts:110–115  ·  view source on GitHub ↗
(error: z.ZodError)

Source from the content-addressed store, hash-verified

108})
109
110function formatFirstIssue(error: z.ZodError): string {
111 const issue = error.issues[0]
112 if (!issue) return 'invalid arguments'
113 const issuePath = issue.path.length > 0 ? `${issue.path.join('.')}: ` : ''
114 return `${issuePath}${issue.message}`
115}
116
117interface ConvertToSuccessPayload {
118 inputPath: string

Callers 2

handleConvertToFunction · 0.70
handleConvertFromFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected