Skip to content

fix: show friendly error when repo is not found #118

@angeloashmore

Description

@angeloashmore

When a repo cannot be found (e.g. prismic repo view -r linear-gc31), the CLI throws an unhandled NotFoundRequestError instead of printing a user-friendly message.

Current behavior:

node:internal/modules/run_main:107
    triggerUncaughtException(
    ^

Za [NotFoundRequestError]: fetch failed: https://linear-gc31.prismic.io/syncState
    at Ja (file:///Users/angeloashmore/.npm/_npx/980839ecb914adeb/node_modules/prismic/dist/string-CoMDRfNA.mjs:167:54249)
    ...

Expected behavior:

A clear, human-readable error message (e.g. Repository "linear-gc31" not found.).

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