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

Function getErrorCode

packages/mcp/src/tools/execution.ts:70–74  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

68}
69
70function getErrorCode(error: unknown): string | undefined {
71 if (typeof error !== 'object' || error === null) return undefined
72 const maybeCode = Reflect.get(error, 'code')
73 return typeof maybeCode === 'string' ? maybeCode : undefined
74}
75
76export const executionTools: Tool[] = [
77 {

Callers 1

handleRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected