Skip to content

Rescue all SystemCallError in safe copy paths#73

Merged
pixelate merged 1 commit into
mainfrom
broaden-copy-error-handling
Jun 13, 2026
Merged

Rescue all SystemCallError in safe copy paths#73
pixelate merged 1 commit into
mainfrom
broaden-copy-error-handling

Conversation

@pixelate

Copy link
Copy Markdown
Owner

Summary

  • Broaden the rescue in Audio#transcode and Scanner#safe_copy from Errno::ENOENT to SystemCallError, so other filesystem errors (e.g. Errno::EINVAL) are logged and handled gracefully rather than crashing.

Test plan

  • Added test covering transcode returning false and logging when Errno::EINVAL is raised.
  • Added test covering safe_copy logging the error and continuing the sync when Errno::EINVAL is raised.

🤖 Generated with Claude Code

Broaden the rescue in Audio#transcode and Scanner#safe_copy from
Errno::ENOENT to SystemCallError so other filesystem errors (e.g.
EINVAL) are logged and handled gracefully instead of crashing.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@pixelate
pixelate merged commit 7c11e38 into main Jun 13, 2026
3 checks passed
@pixelate
pixelate deleted the broaden-copy-error-handling branch June 13, 2026 13:33
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