Skip to content
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

Include path in the error message #267

Closed
wants to merge 1 commit into from

Conversation

pusewicz
Copy link
Contributor

@pusewicz pusewicz commented Mar 5, 2025

When returning an error message from the cf_image_load_png and cf_image_load_png_indexed, let's include the path that was problematic, so it's faster to identify the problem.

When returning an error message from the `cf_image_load_png` and
`cf_image_load_png_indexed`, let's include the path that was
problematic, so it's faster to identify the problem.
@RandyGaul
Copy link
Owner

This does leak memory so can't merge it in as-is. I do agree the error reporting isn't quite sufficient here, but we can't just allocate a string like that and return it.

@RandyGaul RandyGaul closed this Mar 5, 2025
@bullno1
Copy link
Contributor

bullno1 commented Mar 6, 2025

The path is known by the caller right?

Can't the caller just check the error and log accordingly?

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.

3 participants