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

Feature request: Better output/error feedback #39

Open
TechnikTobi opened this issue Oct 26, 2024 · 1 comment
Open

Feature request: Better output/error feedback #39

TechnikTobi opened this issue Oct 26, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@TechnikTobi
Copy link
Owner

May I suggest that with a released version there should be no stderr output either an appropriate return Result or some function that allows the caller to read the error cause in case the read result (i.e. metadata) length is Zero, meaning that LittleExif did not find acceptable exif information.

Originally posted by @mschnell1 in #37 (comment)

@mschnell1
Copy link

Supposedly using a Result as return is not a good idea, as the user would like to use the new created Metadata struct (and hiding same in an Error type seems rather weird). Hence a function that returns the latest reason why metadata could not be decoded might be the most viable option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants