Skip to content

refactor(hub): map project errors in the app error handler only - #17

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-11857-let-the-hubs-error-handler-map-project-errors-instead-of-per
Oct 31, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-11857-let-the-hubs-error-handler-map-project-errors-instead-of-per

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Closes CL-11857

What changed

The artifact, design-theme and next-step routes drop their local failure() helpers and the try/catch around each handler; project errors propagate to app.onError, which already answers with the same status and { code, ...details }. Non-project errors were already rethrown to it. The form-parse try/catch in the attachments handler stays.

How it was verified

  • failure() and app.onError produce the same status and body; the three route sets mount under the app that registers onError and have no handler of their own.
  • bun run lint, bun run typecheck, bun run format:check and bun run test (66 pass) pass.

@linear-code

linear-code Bot commented Oct 31, 2026

Copy link
Copy Markdown

CL-11857

@corbits-triage

corbits-triage Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Triage: Pass

No changes needed from you. A maintainer will review this pull request.

Triage will approve, request review.

@TheGreatAxios
TheGreatAxios force-pushed the cl-11857-let-the-hubs-error-handler-map-project-errors-instead-of-per branch from 582c3bc to ccc540e Compare October 31, 2026 15:00
@TheGreatAxios
TheGreatAxios merged commit ccc540e into main Oct 31, 2026
5 checks passed
@TheGreatAxios
TheGreatAxios deleted the cl-11857-let-the-hubs-error-handler-map-project-errors-instead-of-per branch October 31, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant