Skip to content

Commit a67cf84

Browse files
committed
chore: bug fix and new version
1 parent 8148a46 commit a67cf84

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

packages/cli/cli-v2/src/commands/api/compile/command.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Audiences } from "@fern-api/configuration";
22
import { streamObjectToFile } from "@fern-api/fs-utils";
3-
import { CliError, TaskAbortSignal } from "@fern-api/task-context";
3+
import { CliError } from "@fern-api/task-context";
44

55
import chalk from "chalk";
66
import { 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

packages/cli/cli/versions.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
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: |

0 commit comments

Comments
 (0)