Log exception before converting it to a string

Also, improved error when a feed has the wrong root element.