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

Function formatFirstIssue

packages/mcp/src/tools/execution.ts:63–68  ·  view source on GitHub ↗
(error: z.ZodError)

Source from the content-addressed store, hash-verified

61})
62
63function formatFirstIssue(error: z.ZodError): string {
64 const issue = error.issues[0]
65 if (!issue) return 'invalid arguments'
66 const issuePath = issue.path.length > 0 ? `${issue.path.join('.')}: ` : ''
67 return `${issuePath}${issue.message}`
68}
69
70function getErrorCode(error: unknown): string | undefined {
71 if (typeof error !== 'object' || error === null) return undefined

Callers 1

handleRunFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected