Skip to content

[AUDIT] Bare RuntimeError in template_loader #132

@rsionnach

Description

@rsionnach

Severity: MEDIUM
File: src/nthlayer/specs/template_loader.py:77
Category: CLAUDE.md violation

template_loader raises bare RuntimeError: raise RuntimeError(f'Built-in templates directory not found: {templates_dir}'). Should use ConfigurationError from core/errors.py. As RuntimeError, it bypasses structured error handling and exit code system.

Fix: Replace with raise ConfigurationError(f'Built-in templates directory not found: {templates_dir}').


Beads: trellis-i1u5

Metadata

Metadata

Assignees

No one assigned

    Labels

    auditCodebase audit findingbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions