Skip to content

fix: handle tmutil errors gracefully instead of crashing#5

Merged
django23 merged 1 commit intodevelopfrom
fix/tmutil-error-handling
Feb 19, 2026
Merged

fix: handle tmutil errors gracefully instead of crashing#5
django23 merged 1 commit intodevelopfrom
fix/tmutil-error-handling

Conversation

@django23
Copy link
Copy Markdown
Owner

@django23 django23 commented Feb 19, 2026

Summary

  • Handle tmutil addexclusion errors gracefully (Error -20, -50, etc.)
  • Skip problematic paths with a warning instead of crashing
  • Continue processing remaining directories after a failure

Addresses stevegrunwell#101 (props @vedmant) and stevegrunwell#86 (props @jlarmstrongiv).

Test plan

  • All existing tests pass (make check)
  • New test: continues processing after tmutil failure
  • New test: prints warning on tmutil failure
  • Script exits successfully even when some paths fail

@django23 django23 closed this Feb 19, 2026
@django23 django23 force-pushed the fix/tmutil-error-handling branch from 010db52 to 91730c2 Compare February 19, 2026 19:17
@django23 django23 reopened this Feb 19, 2026
@django23 django23 force-pushed the fix/tmutil-error-handling branch from 7fd9b58 to 6847a74 Compare February 19, 2026 20:15
When tmutil addexclusion fails (e.g. Error -20 or -50 on paths inside
app bundles or with permission issues), skip the path with a warning
instead of crashing. This allows asimov to continue processing
remaining directories.

Addresses stevegrunwell#101 and stevegrunwell#86.
@django23 django23 force-pushed the fix/tmutil-error-handling branch from 6847a74 to de6f2aa Compare February 19, 2026 20:24
@django23 django23 merged commit f4eb4cb into develop Feb 19, 2026
3 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.

1 participant