Skip to content

refactor(utils): centralize and test failure reporting in SystemUtils - #30

Merged
rfprod merged 1 commit into
mainfrom
unit-tests
Nov 8, 2026
Merged

rfprod merged 1 commit into
mainfrom
unit-tests

Conversation

@rfprod

@rfprod rfprod commented Nov 8, 2026

Copy link
Copy Markdown
Owner
  • add report_failure() to route errors to UI or stderr and exit with EXIT_FAILURE;
  • simplify catch_error() by delegating all failure paths to report_failure();
  • add tests and UI mock covering zero, non-zero, signal, and system() failures;

@rfprod rfprod self-assigned this Nov 8, 2026
@rfprod rfprod added Documentation Improvements or additions to documentation. Refactor Refactoring related changes. Program Main program logic related changes. Specs: Unit Unit specs related changes. labels Nov 8, 2026
@rfprod
rfprod enabled auto-merge (squash) November 8, 2026 18:03
- [x] add `report_failure()` to route errors to `UI` or `stderr` and exit with `EXIT_FAILURE`;
- [x] simplify `catch_error()` by delegating all failure paths to `report_failure()`;
- [x] add tests and `UI mock` covering `zero`, `non-zero`, `signal`, and `system() failures`;
@rfprod
rfprod merged commit bc2e067 into main Nov 8, 2026
3 checks passed
@rfprod
rfprod deleted the unit-tests branch November 8, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Improvements or additions to documentation. Program Main program logic related changes. Refactor Refactoring related changes. Specs: Unit Unit specs related changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant