Add error/failure reporting to HTML