Skip to content

repopo: Harden Policy Execution Error Handling #667

@tylerbutler

Description

@tylerbutler

Currently, if a single policy throws an unhandled exception, the entire CLI process terminates immediately.

Action Items:

  • Wrap individual policy execution in a try/catch block.
  • Catch unexpected errors and log them as a "System Error" for the specific file/policy.
  • Allow the runner to continue processing other files even if one fails.
  • Add a test case where a policy throws an error to verify graceful handling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions