Skip to content

Handle validate errors cleanly#168

Merged
httpdss merged 1 commit into
mainfrom
issue-163-validate-clean-errors
Jun 27, 2026
Merged

Handle validate errors cleanly#168
httpdss merged 1 commit into
mainfrom
issue-163-validate-clean-errors

Conversation

@httpdss

@httpdss httpdss commented Jun 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add ValidationConfigError for expected structure validation failures.
  • Catch missing files, YAML parser errors, read errors, and invalid config shapes at the validate command boundary.
  • Exit with concise ❗ ... messages and status 1 instead of Python tracebacks.

Verification

  • pre-commit run --all-files passed
  • pytest -q passed: 192 passed
  • git diff --check passed
  • Ad-hoc verification script /tmp/hermes-verify-structkit-validate-clean-errors-* passed for missing file, invalid YAML, invalid config shape, and top-level non-mapping YAML; script was removed after execution.

Closes #163

@httpdss httpdss merged commit 43a4a7c into main Jun 27, 2026
3 checks passed
@httpdss httpdss deleted the issue-163-validate-clean-errors branch June 27, 2026 18:10
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.

Handle structkit validate missing-file and YAML parse errors cleanly

1 participant