MCPcopy Index your code
hub / github.com/anomalyco/opencode / formatRunError

Function formatRunError

packages/opencode/src/cli/cmd/run.ts:86–88  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

84}
85
86function formatRunError(error: unknown) {
87 return FormatError(error) ?? FormatUnknownError(error)
88}
89
90async function tool(part: ToolPart) {
91 try {

Callers 1

executeFunction · 0.85

Calls 2

FormatErrorFunction · 0.90
FormatUnknownErrorFunction · 0.90

Tested by

no test coverage detected