Raise error if pandoc does not return success (requires ruby 1.9.3+)