Added better error handling to hickory-to-html using ex-info.