webp-convert: Error handling
I’m not happy with the side effects of calling convert (besides the conversion of the file). Right now, calling convert causes stuff to be echoed out (either as html text or image). It would be cleaner not to have these side effects, but rather have a way to receive that kind of information. Also, I’d like there to be a way for consumers to handle conversion errors.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (11 by maintainers)
Commits related to this issue
- Namespacing all the things Also commenting out all logging calls, see #14 — committed to rosell-dk/webp-convert by S1SYPHOS 6 years ago
- Wrapping everything in try/catch blocks This commit introduces basic error handling and closes #14. Also some variable camelcasing can be found. — committed to rosell-dk/webp-convert by S1SYPHOS 6 years ago
Typically, you will just want to do a conversion and be able to handle errors. For that, a static function is most suitable, it seem
Sounds good! Btw, Monday, I’m off for easter holliday. Going to your country, actually. But not quite as far south as your residence. First a couple of days in Hamburg, next some days in Hannover, where my wife lived some time.