Skip to content

Show secret error in includes - #48

Merged
saward merged 2 commits into
mainfrom
show-secret-error-in-includes
Sep 29, 2026
Merged

saward merged 2 commits into
mainfrom
show-secret-error-in-includes

Conversation

@saward

@saward saward commented Sep 29, 2026

Copy link
Copy Markdown
Owner

When a secret is missing in an include, the error is unhelpful. This fixes it so the underlying error is visible.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The error-chain changes are coherent and comprehensively covered without identified correctness issues.

Review effort: Balanced
Findings: None

What changed in this PR

Improves missing-secret diagnostics, including errors originating in included templates.

Changes:

  • Preserves error chains through template rendering and PostgreSQL execution.
  • Reports configured secret names, source paths, line numbers, and documentation links.
  • Adds unit, migration-build, integration, and documentation-link coverage.
File Description
src/​template.rs Uses real template paths in rendering errors.
src/​secrets.rs Improves undefined-secret diagnostics.
src/​docs.rs Centralizes documentation URLs.
src/​lib.rs Exports the documentation module.
src/​engine/​mod.rs Preserves underlying database error chains.
src/​engine/​postgres_psql.rs Retains streaming failure context.
src/​commands/​migration/​apply.rs Verifies full-chain secret redaction.
tests/​migration_build.rs Tests included-template build diagnostics.
tests/​integration_postgres.rs Tests apply-time diagnostics and failure recording.
tests/​doc_links.rs Validates documentation link targets.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@saward
saward merged commit 3ee1f5c into main Sep 29, 2026
9 checks passed
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.

2 participants