Pass error through to the callback
Fix error handling when output file is specified
Merge pull request #11 from conradz/error-handling

Pass error through to the callback