Skip to content

Duplicated error messages across multiple files #330

@jirispilka

Description

@jirispilka

Create src/errors.ts with error functions (following apify-mcp-server-internal pattern):

Functions returning McpError for thrown errors
Functions returning buildMCPResponse() for returned errors

Files: Create src/errors.ts, update actor.ts, fetch-actor-details.ts, fetch-apify-docs.ts, server.ts, store_collection.ts

Examples: actorNotFound(), mcpServerConnectionFailed(), docsFetchFailed(), toolNotFound()

Metadata

Metadata

Assignees

No one assigned

    Labels

    t-aiIssues owned by the AI team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions