Improve error message when pandoc could not successfully convert.