Skip to content

chore(cli): migrate @fern-api/register to use CliError#15008

Open
FedeZara wants to merge 1 commit intomainfrom
FedeZara/refactor/cli-error-register
Open

chore(cli): migrate @fern-api/register to use CliError#15008
FedeZara wants to merge 1 commit intomainfrom
FedeZara/refactor/cli-error-register

Conversation

@FedeZara
Copy link
Copy Markdown
Contributor

@FedeZara FedeZara commented Apr 14, 2026

Description

Migrates @fern-api/register to use explicit CliError error codes on every failAndThrow / failWithoutThrowing call site.

This is one of the package migration PRs that follow the error classification system introduced in #14749.

Changes Made

Assigned typed error codes across call sites in packages/cli/register/src/.

Error codes used

Code Usage
NETWORK_ERROR API registration failures, server communication errors
AUTH_ERROR Authentication failures during registration
CONFIG_ERROR Invalid registration configuration

Files touched (grouped by area)

  • Registration: registerApi.ts

Testing

  • Existing tests pass (pnpm test, excluding e2e and pre-existing environment failures)

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@FedeZara FedeZara changed the title refactor(cli): rename FernCliError to TaskAbortSignal chore(cli): migrate @fern-api/register to use CliError Apr 14, 2026
@FedeZara FedeZara force-pushed the FedeZara/refactor/cli-error-register branch 2 times, most recently from d814b09 to 27d5d18 Compare April 15, 2026 12:52
@FedeZara FedeZara force-pushed the FedeZara/refactor/cli-error-register branch from 27d5d18 to 6399cba Compare April 17, 2026 15:29
@FedeZara FedeZara marked this pull request as ready for review April 17, 2026 15:30
Copy link
Copy Markdown

@claude claude bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant