As seen in #59 we can improve error messages. Some parts of https://github.com/JuliaIO/CodecBzip2.jl/pull/41 should be used here.