Skip to content
Merged
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
2 changes: 2 additions & 0 deletions web/apps/dashboard/lib/utils/error-classification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const EXPECTED_TRPC_CODES = [
"NOT_FOUND",
"TOO_MANY_REQUESTS",
"BAD_REQUEST", // For validation errors
"CONFLICT", // For duplicate resource errors (e.g. workspace slug already exists)
] as const;

/**
Expand All @@ -28,6 +29,7 @@ export const ERROR_SEVERITY_MAP = {
NOT_FOUND: "info",
TOO_MANY_REQUESTS: "warn",
BAD_REQUEST: "warn",
CONFLICT: "warn",
INTERNAL_SERVER_ERROR: "error",
} as const;

Expand Down
Loading