More informative error reporting

Slight tweak that returns the failed DOI along with the error message.