File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
cli-v2/src/commands/api/compile Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 11import { Audiences } from "@fern-api/configuration" ;
22import { streamObjectToFile } from "@fern-api/fs-utils" ;
3- import { CliError , TaskAbortSignal } from "@fern-api/task-context" ;
3+ import { CliError } from "@fern-api/task-context" ;
44
55import chalk from "chalk" ;
66import { JsonStreamStringify } from "json-stream-stringify" ;
@@ -117,7 +117,7 @@ export class CompileCommand {
117117 `${ violation . displayRelativeFilepath } :${ violation . line } :${ violation . column } : ${ violation . message } `
118118 ) ;
119119 }
120- throw new TaskAbortSignal ( ) ;
120+ throw CliError . validationError ( `API ' ${ apiName } ' has ${ result . violations . length } validation errors` ) ;
121121 }
122122 }
123123
Original file line number Diff line number Diff line change 11# yaml-language-server: $schema=../../../fern-versions-yml.schema.json
2+
3+ - version: 4.67.0
4+ changelogEntry:
5+ - summary: |
6+ Unify CLI error reporting under a single `CliError` type. The previous
7+ `LoggableFernCliError` type has been removed in favor of the shared
8+ `CliError` from `@fern-api/task-context`. Sentry reporting for
9+ unclassified errors is temporarily disabled while error classification
10+ is improved.
11+ type: chore
12+ createdAt: "2026-04-10"
13+ irVersion: 66
14+
215- version: 4.66.1
316 changelogEntry:
417 - summary: |
You can’t perform that action at this time.
0 commit comments