Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/lib/error-reporting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import {
* Reasons an error may be silenced (not sent to Sentry as an issue).
* Exposed as the `reason` attribute on the `cli.error.silenced` metric.
*/
type SilenceReason = "output_error" | "auth_expected" | "api_user_error";
type SilenceReason = "output_error" | "auth_expected" | "api_user_error" | "user_input_error";

/**
* Classify whether an error should be silenced.
Expand All @@ -54,6 +54,9 @@ export function classifySilenced(error: unknown): SilenceReason | null {
if (error instanceof OutputError) {
return "output_error";
}
if (error instanceof ResolutionError) {
return "user_input_error";
}
if (
error instanceof AuthError &&
(error.reason === "not_authenticated" || error.reason === "expired")
Expand Down
Loading