acowley / ffmpeg-light

Minimal Haskell bindings to the FFmpeg library
BSD 3-Clause "New" or "Revised" License
66 stars 29 forks source link

Improved error reporting in Codec module. #10

Closed waldheinz closed 9 years ago

waldheinz commented 9 years ago

Using error instead of fail results in an ErrorCall instead of IOError to be emitted, which is subsequently not caught by wrapIOError and thus escapes the MonadError machinery.

This means the user would need to have two layers of error handling in place, which is probably not the intented behaviour.

acowley commented 9 years ago

Thank you!