Skip to content

Gracefully handle batch errors - #101

Merged
vseventer merged 2 commits into
masterfrom
chore/error-handling
Aug 21, 2026
Merged

Gracefully handle batch errors#101
vseventer merged 2 commits into
masterfrom
chore/error-handling

Conversation

@vseventer

Copy link
Copy Markdown
Owner

Use Promise.allSettled so we can inspect promises' results and do proper logging of outcomes. When used in conjunction with --print, a JSON object containing an error key is part of the array.

This does not apply to stdin processing, since that's never batch and always a single file.

Fixes #98.

@vseventer
vseventer force-pushed the chore/error-handling branch from 71249a1 to 710b816 Compare August 21, 2026 00:23
@vseventer
vseventer merged commit 8ca23fa into master Aug 21, 2026
1 check 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.

Batch image processing needs graceful error handling

1 participant