Skip to content

fix(web): the page render error log says what caused it - #700

Draft
PiquelChips wants to merge 1 commit into
refactor/544-boundary-baseline-headersfrom
fix/web-render-error-cause
Draft

PiquelChips wants to merge 1 commit into
refactor/544-boundary-baseline-headersfrom
fix/web-render-error-cause

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Part of #544 (NEW-17, sourceorigin.dev's render log).

Stacked on #679 (refactor/544-boundary-baseline-headers), which rewrites the code around this line in apps/web/src/site/mod.rs. Once #679 merges, retarget this to main.

When a page of sourceorigin.dev failed to render, its log showed only the outer error (error = %error), so the cause was lost. It now logs error = %ErrorChain(&*error), the cause chain, as auth does.

Changed log

Level Message Before After
error page could not be rendered (with page) error = <outer message> error = <outer message>: <each cause>

Unchanged

  • The response, still a 500, and every other line of the file. The diff is the log line and the ErrorChain import.

Checks

  • cargo clippy --locked -p sourceorigin-web --all-targets -- -D warnings, with and without --all-features
  • just test -p sourceorigin-web --all-features: 4 passed

Note

Written by Claude Opus 5.5 in Claude Code and reviewed by Claude Opus 5.5 (via T3 Code)

sourceorigin.dev logged a failed render with Display only. It now logs the
error's chain through ErrorChain, as auth does.
@PiquelChips PiquelChips added bug Something isn't working apps/web sourceorigin.dev: the homepage, policies and public profiles labels Nov 22, 2026
@github-project-automation github-project-automation Bot moved this to Needs Triage in sourceorigin.dev Nov 22, 2026
@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apps/web sourceorigin.dev: the homepage, policies and public profiles bug Something isn't working

Projects

Status: Needs Triage

Development

Successfully merging this pull request may close these issues.

1 participant