Skip to content

fix(adapters): rename err to error in catch blocks (P1-ERR-07 follow-up)#52

Merged
atlanticplatformgroup merged 1 commit into
mainfrom
fix/adapter-catch-parameter-bug
May 27, 2026
Merged

fix(adapters): rename err to error in catch blocks (P1-ERR-07 follow-up)#52
atlanticplatformgroup merged 1 commit into
mainfrom
fix/adapter-catch-parameter-bug

Conversation

@atlanticplatformgroup
Copy link
Copy Markdown
Owner

Fixes a bug introduced in PR #45 where catch parameters were renamed from err to error but internal references were not updated, causing ReferenceError: err is not defined at runtime when error paths are hit.

Files changed:

  • packages/adapters/astro/src/content.ts — 5 fixes
  • packages/adapters/nextjs/src/content.ts — 5 fixes

Verification: npm run build -w @ori/shared, npm run type-check -w @ori/api, npm run build:check -w @ori/web all pass. Adapter lint errors are pre-existing (esModuleInterop config).

PR #45 renamed catch parameters from err to error but missed internal
references, causing ReferenceError at runtime. This fixes all 10 broken
references across astro and nextjs adapters.
@atlanticplatformgroup atlanticplatformgroup merged commit 1215162 into main May 27, 2026
1 check failed
@atlanticplatformgroup atlanticplatformgroup deleted the fix/adapter-catch-parameter-bug branch May 27, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant