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

Change Texture::from_path to return the Error type #125

Merged
merged 2 commits into from
Sep 11, 2022
Merged

Change Texture::from_path to return the Error type #125

merged 2 commits into from
Sep 11, 2022

Conversation

BurntNail
Copy link
Contributor

Currently, Texture::from_path returns a formatted String of the error.

This just returns that error directly, to make handling and differentiation easier downstream especially for custom error types using libraries like snafu and thiserror over just a String.

@BurntNail
Copy link
Contributor Author

Related to #27

@bvssvni
Copy link
Member

bvssvni commented Sep 11, 2022

Merging

@bvssvni bvssvni merged commit 55653a4 into PistonDevelopers:master Sep 11, 2022
@bvssvni
Copy link
Member

bvssvni commented Sep 11, 2022

Thanks!

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