Skip to content

Add Messaging to Diffing Force Unwrap #860

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nevillco
Copy link

Consuming projects can hit the affected force unwrap if there is something wrong with the comparison image file, or if the image file is being stored in git lfs. I thought I would offer to include some messaging here. Open to any feedback.

@nevillco nevillco changed the title Add Messaging to Diffing Force Unwrap Add Messaging to Diffing Force Unwrap Jun 18, 2024
@ZevEisenberg
Copy link

Hey Connor! I was just running into this due to a misconfigured Git LFS installation, and was thinking it would be nice if this function would fall back to decoding the data as a String and logging it, because it would make the failure so much more obvious at a glance. It could even do an XCTFail and/or Issue.report(...), and then return a UIImage() so it doesn't crash.

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.

2 participants