Skip to content

Don't leave valid images around if there was an invalid image (#388)#394

Merged
mdaines merged 1 commit into
v3from
invalid-image-specs
Jul 8, 2026
Merged

Don't leave valid images around if there was an invalid image (#388)#394
mdaines merged 1 commit into
v3from
invalid-image-specs

Conversation

@mdaines

@mdaines mdaines commented Jul 8, 2026

Copy link
Copy Markdown
Owner

The wrapper code validates the image option, throwing if any of its items are invalid. However, it previously did this as part of a loop creating the images, which meant that the paths of images that were created would never reach the cleanup function, and would remain in the virtual filesystem.

This moves the validation step to before the file creation step so that no image files are created if the images option contains invalid items.

The wrapper code validates the image option, throwing if any of its items are invalid. However, it previously did this as part of a loop creating the images, which meant that the paths of images that were created would never reach the cleanup function, and would remain in the virtual filesystem.

This moves the validation step to before the file creation step so that no image files are created if the images option contains invalid items.
@mdaines
mdaines merged commit aaf4192 into v3 Jul 8, 2026
4 checks passed
@mdaines
mdaines deleted the invalid-image-specs branch July 8, 2026 12:24
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