Improve error message when pandoc could not successfully convert.

I ran into a problem because I didn't have pdflatex installed. I got no error messaging, so I added this to notify me when pandoc runs into errors when attempting to convert a file.