Skip to content

Project-scoped commands report "generator body threw" instead of the API's error when listing projects fails #299

Description

@wmadden-electric

packages/cli/src/commands/project/context.ts and project/show.ts pass a listProjects that can throw into Result.gen (packages/cli/src/lib/project/resolution.ts). better-result wraps the throw as a panic whose message is "generator body threw", so an API refusal or network error surfaces with that message. The service path avoids this by fetching first (commands/service/target.ts); the project path should do the same.

Recorded in the prisma-cli-v8 project ledger, which is being deleted at project close-out:

- **`resolvePinnedProject` can mask an API refusal as "generator body

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions